com.webct.platform.sdk.systemintegrationapi.common
Class ErrorCode

java.lang.Object
  extended by com.webct.platform.sdk.systemintegrationapi.common.ErrorCode
All Implemented Interfaces:
java.io.Serializable

public class ErrorCode
extends java.lang.Object
implements java.io.Serializable

A class which provides for type-safe error code constants. Allows lookup of a constant instance given either a String label or an int value.

See Also:
Serialized Form

Field Summary
static ErrorCode CONSTRAINT_VIOLATION
          CONSTRAINT_VIOLATION
static int CONSTRAINT_VIOLATION_ID
           
static ErrorCode ENTITY_DOES_NOT_EXIST
          ENTITY_DOES_NOT_EXIST
static int ENTITY_DOES_NOT_EXIST_ID
           
static ErrorCode INFRASTRUCTURE_FAILURE
          INFRASTRUCTURE_FAILURE
static int INFRASTRUCTURE_FAILURE_ID
           
static ErrorCode OP_NOT_SUPPORTED
          OP_NOT_SUPPORTED
static int OP_NOT_SUPPORTED_ID
           
static ErrorCode OTHER
          XML_NOT_VALID
static int OTHER_ID
           
static ErrorCode XML_NOT_VALID
          XML_NOT_VALID
static int XML_NOT_VALID_ID
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Evaluates for equivalence.
 int hashCode()
          Returns a unique identifier for this instance.
 int intValue()
          Returns the integer value.
static ErrorCode lookup(int value)
          Gets the appropriate ErrorCode given an integer value.
static ErrorCode lookup(java.lang.String value)
          Gets the appropriate ErrorCode given a string value.
 java.lang.String toString()
          Returns the String representation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

OP_NOT_SUPPORTED_ID

public static final int OP_NOT_SUPPORTED_ID
See Also:
Constant Field Values

ENTITY_DOES_NOT_EXIST_ID

public static final int ENTITY_DOES_NOT_EXIST_ID
See Also:
Constant Field Values

INFRASTRUCTURE_FAILURE_ID

public static final int INFRASTRUCTURE_FAILURE_ID
See Also:
Constant Field Values

XML_NOT_VALID_ID

public static final int XML_NOT_VALID_ID
See Also:
Constant Field Values

CONSTRAINT_VIOLATION_ID

public static final int CONSTRAINT_VIOLATION_ID
See Also:
Constant Field Values

OTHER_ID

public static final int OTHER_ID
See Also:
Constant Field Values

OP_NOT_SUPPORTED

public static final ErrorCode OP_NOT_SUPPORTED
Description copied from class: ErrorCode
OP_NOT_SUPPORTED


ENTITY_DOES_NOT_EXIST

public static final ErrorCode ENTITY_DOES_NOT_EXIST
Description copied from class: ErrorCode
ENTITY_DOES_NOT_EXIST


INFRASTRUCTURE_FAILURE

public static final ErrorCode INFRASTRUCTURE_FAILURE
Description copied from class: ErrorCode
INFRASTRUCTURE_FAILURE


XML_NOT_VALID

public static final ErrorCode XML_NOT_VALID
Description copied from class: ErrorCode
XML_NOT_VALID


CONSTRAINT_VIOLATION

public static final ErrorCode CONSTRAINT_VIOLATION
Description copied from class: ErrorCode
CONSTRAINT_VIOLATION


OTHER

public static final ErrorCode OTHER
Description copied from class: ErrorCode
XML_NOT_VALID

Method Detail

lookup

public static ErrorCode lookup(int value)
Description copied from class: ErrorCode
Gets the appropriate ErrorCode given an integer value.

Returns:
The ErrorCode reference that matches the value or null

lookup

public static ErrorCode lookup(java.lang.String value)
Description copied from class: ErrorCode
Gets the appropriate ErrorCode given a string value.

Returns:
The ErrorCode reference that matches the value or null

intValue

public final int intValue()
Description copied from class: ErrorCode
Returns the integer value.


toString

public final java.lang.String toString()
Description copied from class: ErrorCode
Returns the String representation.

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Description copied from class: ErrorCode
Returns a unique identifier for this instance.

Overrides:
hashCode in class java.lang.Object
Returns:
unique identifing value

equals

public boolean equals(java.lang.Object obj)
Description copied from class: ErrorCode
Evaluates for equivalence.

Overrides:
equals in class java.lang.Object
Parameters:
obj - object of comparison
Returns:
true or false


Copyright © 2000-2004 WebCT Corp. All Rights Reserved.