com.adobe.icc.dbforms.exceptions
Class ExceptionMessages

java.lang.Object
  extended by com.adobe.icc.dbforms.exceptions.ExceptionMessages

public class ExceptionMessages
extends java.lang.Object

Class to get a pre-defined message from a exceptions.properties file in this library


Field Summary
static int LOG_DEBUG
           
static int LOG_ERROR
           
static int LOG_FATAL
           
static int LOG_INFO
           
static int LOG_WARN
           
 
Method Summary
static java.lang.String getString(java.lang.String key)
          Retrieve message with default locale (en_EN)
static java.lang.String getString(java.lang.String resourceID, java.lang.String[] args)
          Retrieve message with default locale (en_EN) for the given resourceID and arguments.
static void logMessage(java.lang.Class class1, int severity, java.lang.String resourceID)
          Log message at the given severity level, against the given resourceID.
static void logMessage(java.lang.Class class1, int severity, java.lang.String resourceID, java.lang.String[] args)
          Log message at the given severity level, against the given resourceID and arguments.
static void logMessage(java.lang.Class class1, int severity, java.lang.String resourceID, java.lang.String[] args, java.lang.Throwable cause)
          Log message at the given severity level, against the given resourceID and arguments.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_FATAL

public static final int LOG_FATAL
See Also:
Constant Field Values

LOG_ERROR

public static final int LOG_ERROR
See Also:
Constant Field Values

LOG_WARN

public static final int LOG_WARN
See Also:
Constant Field Values

LOG_INFO

public static final int LOG_INFO
See Also:
Constant Field Values

LOG_DEBUG

public static final int LOG_DEBUG
See Also:
Constant Field Values
Method Detail

getString

public static java.lang.String getString(java.lang.String key)
Retrieve message with default locale (en_EN)

Parameters:
key - key of message
Returns:
the translated resource string

logMessage

public static void logMessage(java.lang.Class class1,
                              int severity,
                              java.lang.String resourceID,
                              java.lang.String[] args)
Log message at the given severity level, against the given resourceID and arguments.

Parameters:
class1 - Class for the logger
severity - severity of the log
resourceID - resource bundle identifier
args - necessary arguments for the error message

logMessage

public static void logMessage(java.lang.Class class1,
                              int severity,
                              java.lang.String resourceID,
                              java.lang.String[] args,
                              java.lang.Throwable cause)
Log message at the given severity level, against the given resourceID and arguments.

Parameters:
class1 - Class for the logger
severity - severity of the log
resourceID - resource bundle identifier
args - necessary arguments for the error message
cause - root cause of exception

logMessage

public static void logMessage(java.lang.Class class1,
                              int severity,
                              java.lang.String resourceID)
Log message at the given severity level, against the given resourceID.

Parameters:
class1 - Class for the logger
severity - severity of the log
resourceID - resource bundle identifier

getString

public static java.lang.String getString(java.lang.String resourceID,
                                         java.lang.String[] args)
Retrieve message with default locale (en_EN) for the given resourceID and arguments.

Parameters:
resourceID - resource bundle identifier
args - necessary arguments for the error message
Returns:
the translated resource string


[an error occurred while processing this directive] [an error occurred while processing this directive]