protected X newWithCause(final String message, final Throwable cause) {
try {
return ctor.newInstance(message, cause);
- } catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
+ } catch (InstantiationException | IllegalAccessException | IllegalArgumentException
+ | InvocationTargetException e) {
throw new IllegalStateException("Failed to instantiate exception " + ctor.getDeclaringClass(), e);
}
}