private static String truncateErrorMsg ( String errorMsg ) { if ( errorMsg != null && errorMsg . length ( ) > MAX_ERROR_MSG_LENGTH ) { return errorMsg . substring ( 0 , MAX_ERROR_MSG_LENGTH ) + "..." ; } else { return errorMsg ; } }
The full error message will be available via a TaskReport .