/** * Throws the either the original exception or the first found cause if it * matches one of the given declared types or is unchecked. Otherwise, the * original exception is thrown as an UndeclaredThrowableException. This * method only returns normally if the exception is null. * * @param t exception whose cause is to be thrown * @param declaredTypes if exception is checked and is not an instance of * any of these types, then it is thrown as an * UndeclaredThrowableException. */ public static void fireFirstDeclared(Throwable t, Class... declaredTypes) { org.cojen.util.ThrowUnchecked.fireFirstDeclared(t, declaredTypes); }
/** * Throws the either the original exception or the first found cause if it * matches one of the given declared types or is unchecked. Otherwise, the * original exception is thrown as an UndeclaredThrowableException. This * method only returns normally if the exception is null. * * @param t exception whose cause is to be thrown * @param declaredTypes if exception is checked and is not an instance of * any of these types, then it is thrown as an * UndeclaredThrowableException. */ public static void fireFirstDeclared(Throwable t, Class... declaredTypes) { org.cojen.util.ThrowUnchecked.fireFirstDeclared(t, declaredTypes); }