@ Expose protected List < Exception > getExceptions ( ) { List < Exception > exceptions = new ArrayList < Exception > ( ) ; exceptions . add ( exception ) ; Throwable currentThrowable = exception . getThrowable ( ) . getCause ( ) ; while ( currentThrowable != null ) { exceptions . add ( new Exception ( config , currentThrowable ) ) ; currentThrowable = currentThrowable . getCause ( ) ; } return exceptions ; }
Get the exceptions for the report .