Class ExceptionMessageGenerator
- java.lang.Object
-
- org.eclipse.persistence.exceptions.i18n.ExceptionMessageGenerator
-
public class ExceptionMessageGenerator extends java.lang.ObjectINTERNAL: Utility class to generate exception messages using ResourceBundles. Creation date: (12/7/00 10:30:38 AM)
-
-
Constructor Summary
Constructors Constructor Description ExceptionMessageGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringbuildMessage(java.lang.Class exceptionClass, int errorNumber, java.lang.Object[] arguments)Return the message for the given exception class and error number.protected static java.lang.Stringformat(java.lang.String message, java.lang.Object[] arguments)Return the formatted message for the given exception class and error number.static java.lang.StringgetHeader(java.lang.String headerLabel)Get one of the generic headers used for the exception's toString().static java.lang.ClassLoadergetLoader()Return the loader for loading the resource bundles.
-
-
-
Method Detail
-
getLoader
public static java.lang.ClassLoader getLoader()
Return the loader for loading the resource bundles.
-
buildMessage
public static java.lang.String buildMessage(java.lang.Class exceptionClass, int errorNumber, java.lang.Object[] arguments)Return the message for the given exception class and error number.
-
format
protected static java.lang.String format(java.lang.String message, java.lang.Object[] arguments)Return the formatted message for the given exception class and error number.
-
getHeader
public static java.lang.String getHeader(java.lang.String headerLabel)
Get one of the generic headers used for the exception's toString(). E.g., "EXCEPTION DESCRIPTION: ", "ERROR CODE: ", etc.
-
-