/** * Get to the base exception (if any). * @param t the Throwable object * @return the base Exception object */ public static Throwable baseException(Throwable t) { Throwable wrapped = wrappedException(t); return wrapped != null? baseException(wrapped) : t; }
/** * Get to the base exception (if any). */ public static Throwable baseException(Throwable t) { Throwable wrapped = wrappedException(t); if (wrapped != null) return baseException(wrapped); else return t; }
/** * Get to the base exception (if any). * @param t the Throwable object * @return the base Exception object */ public static Throwable baseException(Throwable t) { Throwable wrapped = wrappedException(t); return wrapped != null? baseException(wrapped) : t; }