package com.alexrnl.commons.error;

import java.util.logging.Logger;

/**
 * Utility methods for exception handling.<br />
 * @author Alex
 */
public final class ExceptionUtils {
	/** Logger */
	private static Logger	lg	= Logger.getLogger(ExceptionUtils.class.getName());
	
	/**
	 * Constructor #1.<br />
	 * Default private constructor.
	 */
	private ExceptionUtils () {
		super();
	}
	
	/**
	 * Print a nice message with the {@link Class} and the {@link Throwable#getMessage() message}
	 * of the exception.<br />
	 * @param e
	 *        the throwable object to display.
	 * @return a {@link String} containing the class and the message of the exception.
	 */
	public static String displayClassAndMessage (final Throwable e) {
		if (e == null) {
			lg.warning("Cannot display null exception.");
			return "null exception caught";
		}
		return e.getClass() + "; " + e.getMessage();
	}
}

@@ -267,16 +267,146 @@
 e());%0A%09%0A
+%09/** The separator used to separate the class from the message. */%0A%09private static final String%09CLASS_MESSAGE_SEPARATOR%09= %22; %22;%0A%09%0A
 %09/**%0A%09 *
@@ -983,20 +983,39 @@
 ass() + 
-%22; %22
+CLASS_MESSAGE_SEPARATOR
  + e.get

Replace string with constant.