static public String exceptionSummary ( JMSException e ) { Throwable cause = e . getCause ( ) ; Exception linked = e . getLinkedException ( ) ; return "JMSException: " + e . getMessage ( ) + ", error code: " + e . getErrorCode ( ) + ", linked exception: " + ( linked == null ? null : ( linked . getClass ( ) . getName ( ) + " - " + linked . getMessage ( ) ) ) + ", cause: " + ( cause == null ? null : ( cause . getClass ( ) . getName ( ) + " - " + cause . getMessage ( ) ) ) ; }
Generate a single line String consisted of the summary of a JMSException