org.eclipse.persistence.exceptions.i18n
Class ExceptionMessageGenerator

java.lang.Object
  extended by org.eclipse.persistence.exceptions.i18n.ExceptionMessageGenerator

public class ExceptionMessageGenerator
extends java.lang.Object

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


Constructor Summary
ExceptionMessageGenerator()
           
 
Method Summary
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.
static java.lang.String getHeader(java.lang.String headerLabel)
          Get one of the generic headers used for the exception's toString().
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionMessageGenerator

public ExceptionMessageGenerator()
Method Detail

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.


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.