org.eclipse.persistence.exceptions.i18n
Class ExceptionMessageGenerator
java.lang.Object
org.eclipse.persistence.exceptions.i18n.ExceptionMessageGenerator
public class ExceptionMessageGenerator
- extends Object
INTERNAL:
Utility class to generate exception messages using ResourceBundles.
Creation date: (12/7/00 10:30:38 AM)
Method Summary |
static String |
buildMessage(Class exceptionClass,
int errorNumber,
Object[] arguments)
Return the 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(). |
ExceptionMessageGenerator
public ExceptionMessageGenerator()
buildMessage
public static String buildMessage(Class exceptionClass,
int errorNumber,
Object[] arguments)
- Return the message for the given exception class and error number.
getHeader
public static String getHeader(String headerLabel)
- Get one of the generic headers used for the exception's toString().
E.g., "EXCEPTION DESCRIPTION: ", "ERROR CODE: ", etc.