private static String toErrorItemMessage ( final String logMessage , final String throwableMessage ) { StringBuilder sb = new StringBuilder ( ) ; if ( ( throwableMessage != null ) && ( ! throwableMessage . isEmpty ( ) ) ) { sb . append ( throwableMessage ) ; if ( ( logMessage != null ) && ( ! logMessage . isEmpty ( ) ) ) { sb . append ( " (" ) ; sb . append ( logMessage ) ; sb . append ( ")" ) ; } } else { sb . append ( logMessage ) ; } return sb . toString ( ) ; }
Constructs the error item message from the log message and the throwable s message