Throwable function ( Throwable arg0 ) { Throwable loc0 ; while ( ( loc0 = arg0 . getCause ( ) ) != null ) { arg0 = loc0 ; } return arg0 ; }
returns the innermost cause of throwable . the first throwable in a chain provides context from when the error or exception was initially detected . example usage : assertequals `` unable to assign a customer id '' , throwables.getrootcause e . getmessage ; concode_field_sep Method getStackTraceElementMethod concode_elem_sep String SHARED_SECRETS_CLASSNAME concode_elem_sep Method getStackTraceDepthMethod concode_elem_sep String JAVA_LANG_ACCESS_CLASSNAME concode_elem_sep Object jla concode_field_sep List<StackTraceElement> lazyStackTrace concode_elem_sep Object getJLA concode_elem_sep Method getJlaMethod concode_elem_sep Method getSizeMethod concode_elem_sep Object invokeAccessibleNonThrowingMethod concode_elem_sep Method getGetMethod concode_elem_sep List<StackTraceElement> jlaStackTrace concode_elem_sep void propagateIfPossible concode_elem_sep void propagateIfPossible concode_elem_sep void propagateIfPossible concode_elem_sep List<Throwable> getCausalChain concode_elem_sep RuntimeException propagate concode_elem_sep void propagateIfInstanceOf concode_elem_sep String getStackTraceAsString concode_elem_sep boolean lazyStackTraceIsLazy