message = MSG_UNKNOWN_HOST + message; } else if ( getCause( ) instanceof FileNotFoundException ) { message = MSG_FILE_NOT_FOUND + message; } else if ( getCause( ) instanceof OutOfMemoryError ) { message = MSG_OUT_OF_MEMORY; } if ( StringUtil.isBlank( message ) ) { message = MessageFormat.format( MSG_CAUSED_BY, new String[]{ getCause( ).getClass( ).getName( ) } );
message = getCause( ).getLocalizedMessage( ); if ( getCause( ) instanceof UnknownHostException ) { message = MSG_UNKNOWN_HOST + message; } else if ( getCause( ) instanceof FileNotFoundException ) { message = MSG_FILE_NOT_FOUND + message; } else if ( getCause( ) instanceof OutOfMemoryError ) { message = MSG_OUT_OF_MEMORY; } if ( StringUtil.isBlank( message ) ) { message = MessageFormat.format( MSG_CAUSED_BY, new String[]{ getCause( ).getClass( ).getName( ) } ); }
	public String getMessage( )	{		String message = getCause( ).getLocalizedMessage( );		if ( getCause( ) instanceof UnknownHostException )		{			message = MSG_UNKNOWN_HOST + message;		}		else if ( getCause( ) instanceof FileNotFoundException )		{			message = MSG_FILE_NOT_FOUND + message;		}		else if ( getCause( ) instanceof OutOfMemoryError )		{			message = MSG_OUT_OF_MEMORY;		}		if ( StringUtil.isBlank( message ) )		{			message = MessageFormat.format( MSG_CAUSED_BY, new String[]{				getCause( ).getClass( ).getName( )			} );		}		return message;	}