Top Description Fields Constructors Methods
org.eclipse.persistence.exceptions.i18n

public final Class ExceptionMessageGenerator

extends Object
Class Inheritance
Imports
java.text.MessageFormat, java.util.Locale, .ResourceBundle, .Vector, org.eclipse.persistence.internal.helper.ConversionManager, .Helper, org.eclipse.persistence.internal.security.PrivilegedAccessHelper

INTERNAL: Utility class to generate exception messages using ResourceBundles. Creation date: (12/7/00 10:30:38 AM)
Author
Rick Barkhouse

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public 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.

public static String
getHeader(String headerLabel)

Get one of the generic headers used for the exception's toString().

public static ClassLoader
getLoader()

Return the loader for loading the resource bundles.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CRback to summary
private static final String CR

Constructor Detail

ExceptionMessageGeneratorback to summary
private ExceptionMessageGenerator()

Method Detail

buildMessageback to summary
public static String buildMessage(Class<?> exceptionClass, int errorNumber, Object[] arguments)

Return the message for the given exception class and error number.

formatback to summary
protected static String format(String message, Object[] arguments)

Return the formatted message for the given exception class and error number.

getHeaderback to summary
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.

getLoaderback to summary
public static ClassLoader getLoader()

Return the loader for loading the resource bundles.