Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.9.0)

E52932-01


oracle.adfinternal.model.logging.contextual
Enum ErrorHelper.ErrorMessage

java.lang.Object
  extended by java.lang.Enum<ErrorHelper.ErrorMessage>
      extended by oracle.adfinternal.model.logging.contextual.ErrorHelper.ErrorMessage

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ErrorHelper.ErrorMessage>
Enclosing class:
ErrorHelper

public static enum ErrorHelper.ErrorMessage
extends java.lang.Enum<ErrorHelper.ErrorMessage>

Common error messages


Enum Constant Summary
CLOSED_LOGGER
           
INVALID_LOGGER_FOR_DOMAIN
           
INVALID_NULL_ARG
           
INVALID_NULL_OR_EMPTY_ARG
           
SCOPE_NOT_FOUND
           

 

Method Summary
 java.lang.String getLocalizedMessage(java.lang.Object... args)
          The error message obtained from the resource bundle taking the current locale into consideration.
 java.lang.String getLogMessage(java.lang.Object... args)
           
static ErrorHelper.ErrorMessage valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ErrorHelper.ErrorMessage[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.

 

Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Enum Constant Detail

SCOPE_NOT_FOUND

public static final ErrorHelper.ErrorMessage SCOPE_NOT_FOUND

INVALID_LOGGER_FOR_DOMAIN

public static final ErrorHelper.ErrorMessage INVALID_LOGGER_FOR_DOMAIN

CLOSED_LOGGER

public static final ErrorHelper.ErrorMessage CLOSED_LOGGER

INVALID_NULL_OR_EMPTY_ARG

public static final ErrorHelper.ErrorMessage INVALID_NULL_OR_EMPTY_ARG

INVALID_NULL_ARG

public static final ErrorHelper.ErrorMessage INVALID_NULL_ARG

Method Detail

values

public static ErrorHelper.ErrorMessage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ErrorHelper.ErrorMessage c : ErrorHelper.ErrorMessage.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ErrorHelper.ErrorMessage valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.lang.Object... args)

The error message obtained from the resource bundle taking the current locale into consideration. The locale will be retrieved from the current ADFContext.

Parameters:
args - Optional array containing all arguments expected to fill up the error message's template.
Returns:
Localized error message.
See Also:
StringManager.getLocalizedString(String,String,String,java.util.Locale,Object[])

getLogMessage

public java.lang.String getLogMessage(java.lang.Object... args)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.9.0)

E52932-01


Copyright © 1997, 2015, Oracle. All rights reserved.