- java.lang.Object
-
- org.eclipse.persistence.exceptions.i18n.ExceptionMessageGenerator
-
public final class ExceptionMessageGenerator extends Object
INTERNAL: Utility class to generate exception messages using ResourceBundles. Creation date: (12/7/00 10:30:38 AM)- Author:
- Rick Barkhouse
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
buildMessage(Class<?> exceptionClass, int errorNumber, Object[] arguments)
Return the message for the given exception class and error number.protected static String
format(String message, Object[] arguments)
Return the formatted message for the given exception class and error number.static String
getHeader(String headerLabel)
Get one of the generic headers used for the exception's toString().static ClassLoader
getLoader()
Return the loader for loading the resource bundles.
-
-
-
Method Detail
-
getLoader
public static ClassLoader getLoader()
Return the loader for loading the resource bundles.
-
buildMessage
public static String buildMessage(Class<?> exceptionClass, int errorNumber, Object[] arguments)
Return the message for the given exception class and error number.
-
format
protected static String format(String message, Object[] arguments)
Return the formatted message for the given exception class and error number.
-
-