public UnexpectedNoSuchMethodException(NoSuchMethodException cause, String message, Object... args) { super(cause.getCause(), message, args); } }
public UnexpectedNoSuchFieldException(NoSuchMethodException cause, String message, Object... args) { super(cause.getCause(), message, args); } }
public UnexpectedNoSuchFieldException(NoSuchMethodException cause, String message, Object... args) { super(cause.getCause(), message, args); } }
public UnexpectedNoSuchMethodException(NoSuchMethodException cause, String message, Object... args) { super(cause.getCause(), message, args); } }
public UnexpectedNoSuchMethodException(NoSuchMethodException cause) { super(cause.getCause(), cause.getMessage()); }
public UnexpectedNoSuchMethodException(NoSuchMethodException cause) { super(cause.getCause(), cause.getMessage()); }
private static CommonDataSource wrapIfNeeded(final String handler, final CommonDataSource ds) throws InstantiationException, IllegalAccessException { if (handler != null) { try { final Class<?> handlerClass = Thread.currentThread().getContextClassLoader().loadClass(handler); InvocationHandler instance; try { instance = InvocationHandler.class.cast(handlerClass.getConstructor(DataSource.class).newInstance(ds)); } catch (final InvocationTargetException e) { throw new IllegalStateException(e.getCause()); } catch (final NoSuchMethodException e) { try { instance = InvocationHandler.class.cast(handlerClass.getConstructor(CommonDataSource.class).newInstance(ds)); } catch (final InvocationTargetException e2) { throw new IllegalStateException(e.getCause()); } catch (final NoSuchMethodException e2) { instance = InvocationHandler.class.cast(handlerClass.newInstance()); } } return wrapWithHandler(ds, instance); } catch (ClassNotFoundException e) { throw new IllegalArgumentException("Can't find handler: " + handler, e); } } return ds; }
LOG.warn(String.format("[%s] Failed to find handler for msg '%s'.", name(), msg.getClass().getName())); writeMessage(ctx, Rpc.MessageType.ERROR, Utils.stackTraceAsString(e.getCause())); return;
throw new WebBeansException("No suitable constructor : " + clazz.getName(), e.getCause());
_logger.log(Level.FINE, ex2.toString(), ex2); throw new MBeanException(new Exception(e.getCause()));
throw new RuntimeException(e.getCause()); } catch (NoSuchMethodException e) { throw new RuntimeException(e.getCause()); } catch (IllegalAccessException e) { throw new RuntimeException(e.getCause());
Throwable cause = e.getCause(); //FIXME
logger.debug(ne.getCause());