Class ExceptionMessageGenerator
java.lang.Object
org.eclipse.persistence.exceptions.i18n.ExceptionMessageGenerator
INTERNAL:
Utility class to generate exception messages using ResourceBundles.
Creation date: (12/7/00 10:30:38 AM)
- Author:
- Rick Barkhouse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildMessage(Class exceptionClass, int errorNumber, Object[] arguments) Return the message for the given exception class and error number.protected static StringReturn the formatted message for the given exception class and error number.static StringGet one of the generic headers used for the exception's toString().static ClassLoaderReturn the loader for loading the resource bundles.
-
Constructor Details
-
ExceptionMessageGenerator
public ExceptionMessageGenerator()
-
-
Method Details
-
getLoader
Return the loader for loading the resource bundles. -
buildMessage
Return the message for the given exception class and error number. -
format
Return the formatted message for the given exception class and error number. -
getHeader
Get one of the generic headers used for the exception's toString(). E.g., "EXCEPTION DESCRIPTION: ", "ERROR CODE: ", etc.
-