protected String createExceptionMessage ( Throwable exception , Request request , Response response ) { StringBuilder sb = new StringBuilder ( request . getEffectiveHttpMethod ( ) . toString ( ) ) ; sb . append ( ' ' ) ; sb . append ( request . getUrl ( ) ) ; sb . append ( " threw exception: " ) ; sb . append ( exception . getClass ( ) . getSimpleName ( ) ) ; return sb . toString ( ) ; }
Create the message to be logged when a request results in an exception . Sub - classes can override .