protected String constructMessage ( String message , Throwable cause ) { if ( cause != null ) { StringBuilder strBuilder = new StringBuilder ( ) ; if ( message != null ) { strBuilder . append ( message ) . append ( ": " ) ; } strBuilder . append ( "Wrapped exception is {" ) . append ( cause ) ; strBuilder . append ( "}" ) ; return strBuilder . toString ( ) ; } else { return message ; } }
Constructs an exception String with the given message and incorporating the causing exception