Oracle Fusion Applications Java API Reference for Oracle Enterprise Scheduler Service
11g Release 1 (11.1.1.5)
E20742-01


oracle.as.scheduler
Enum ErrorType

java.lang.Object
  extended by java.lang.Enum<ErrorType>
      extended by oracle.as.scheduler.ErrorType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ErrorType>

public enum ErrorType
extends java.lang.Enum<ErrorType>

Enum of error types. The error type is valid only when the request state is ERROR, and it distinguishes which type of error occurred.


Enum Constant Summary
BUSINESS
          Business error type.
MIXED_BUSINESS
          Error type used for a parallel JobSet that had more than one ERROR step with different error types, at least one of which was BUSINESS.
MIXED_NON_BUSINESS
          Error type used for a parallel JobSet that had more than one ERROR step with different error types, none of which were BUSINESS.
SYSTEM
          System error type.
TIMEOUT
          Asynchronous request timeout.
UNKNOWN
          Unknown or invalid error type
 
Method Summary
static ErrorType from(javax.management.openmbean.CompositeData cd)
           
static ErrorType fromString(java.lang.String errorTypeStr)
          Converts a stringified error type into an ErrorType object.
 javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
           
static javax.management.openmbean.CompositeType toCompositeType()
          Returns the CompositeType that describes this model specific class
 java.lang.String toString(java.util.Locale locale)
           
 int value()
          Returns the numeric value for the error type.
static ErrorType valueOf(int value)
          Returns the error type for the given numeric value.
static ErrorType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ErrorType[] 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

UNKNOWN

public static final ErrorType UNKNOWN
Unknown or invalid error type


SYSTEM

public static final ErrorType SYSTEM
System error type. The OS or machine crashed; or the job encountered an unrecoverable technical error (e.g., ORA-600, table space issues, unhandled runtime exception) and otherwise exited of its own volition.


BUSINESS

public static final ErrorType BUSINESS
Business error type. The job encountered a condition which required it to abort prematurely and was otherwise able to exit cleanly, leaving data in a consistent state. Typical examples might be an applications setup/configuration condition, or a functional conflict that required an early exit, or corrupted/inconsistent data.


TIMEOUT

public static final ErrorType TIMEOUT
Asynchronous request timeout.


MIXED_NON_BUSINESS

public static final ErrorType MIXED_NON_BUSINESS
Error type used for a parallel JobSet that had more than one ERROR step with different error types, none of which were BUSINESS.

Examine each of the child requests to determine the error type for each step.


MIXED_BUSINESS

public static final ErrorType MIXED_BUSINESS
Error type used for a parallel JobSet that had more than one ERROR step with different error types, at least one of which was BUSINESS.

Examine each of the child requests to determine the error type for each step.

Method Detail

values

public static ErrorType[] 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 (ErrorType c : ErrorType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ErrorType 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:
IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

value

public int value()
Returns the numeric value for the error type.

Returns:
value for this error type

valueOf

public static ErrorType valueOf(int value)
Returns the error type for the given numeric value.

Parameters:
value - to convert to error type
Returns:
associated error type

toCompositeType

public static javax.management.openmbean.CompositeType toCompositeType()
Returns the CompositeType that describes this model specific class


toCompositeData

public javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)

from

public static ErrorType from(javax.management.openmbean.CompositeData cd)
                      throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

fromString

public static ErrorType fromString(java.lang.String errorTypeStr)
Converts a stringified error type into an ErrorType object.

Parameters:
errorTypeStr -
Returns:
the error type derived from errorTypeStr or ErrorType.UNKNOWN if the conversion could not be made.

toString

public java.lang.String toString(java.util.Locale locale)

Oracle Fusion Applications Java API Reference for Oracle Enterprise Scheduler Service
11g Release 1 (11.1.1.5)
E20742-01


Copyright © 2008, 2011 Oracle. All rights reserved.