@ SuppressWarnings ( { "PMD.DataflowAnomalyAnalysis" , "PMD.AvoidCatchingGenericException" , "PMD.UseStringBufferForStringAppends" , "PMD.SystemPrintln" } ) public void printError ( Error event ) { String msg = "Unhandled " + event ; System . err . println ( msg ) ; if ( event . throwable ( ) == null ) { System . err . println ( "No stack trace available." ) ; } else { event . throwable ( ) . printStackTrace ( ) ; } }
Prints the error .