org.openmdx.kernel.exception
Class BasicException.Code

java.lang.Object
  extended by org.openmdx.kernel.enumeration.IntegerEnumeration
      extended by org.openmdx.kernel.exception.BasicException.Code
Direct Known Subclasses:
ModelExceptions
Enclosing class:
BasicException

public static class BasicException.Code
extends IntegerEnumeration


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openmdx.kernel.enumeration.IntegerEnumeration
IntegerEnumeration.Mapper, IntegerEnumeration.ReflectiveMapper
 
Field Summary
static int ABORT
          An ABORT exception is thrown to report that a non-transactional unit of work has been aborted.
static int ACTIVATION_FAILURE
          Activation failure
static int ASSERTION_FAILURE
          Assertion error.
static int AUTHENTICATION_FAILURE
          authentication failure.
static int AUTHORIZATION_FAILURE
          authorization failure.
static int BAD_CONTEXT
          Error processing context
static int BAD_MEMBER_NAME
          Non-existing attribute or property.
static int BAD_PARAMETER
          An error code that signals bad/inconsistent parameters.
static int BAD_QUERY_CRITERIA
          Bad query criteria.
static int BAD_RESOURCE
          Wrong or bad resource.
static int BAD_SEQUENCE_LENGTH
          Invalid/Unexpected length (nr of elements) of a sequence.
static int BIND_FAILURE
          A bind to an object or service failed
static int COMMUNICATION_FAILURE
          A communication failure
static int CONCURRENT_ACCESS_FAILURE
          A concurrent access error condition.
static int CREATION_FAILURE
          The creation of a resource failed
static int DEACTIVATION_FAILURE
          Deactivation failure
static String DEFAULT_DOMAIN
          The default domain.
static int DUPLICATE
          Duplicate element
static int GENERIC
          This code is used for technical error conditions such as NullPointerExceptions, ClassNotFoundExceptions, ...
static int HEURISTIC
          A HEURISTIC exception is thrown by the commit operation to indicate that a heuristic decision was made and that some relevant updates have been committed and others have been rolled back.
static int ILLEGAL_STATE
          Signals that a method has been invoked at an illegal or inappropriate time.
static int INITIALIZATION_FAILURE
          A initialization failure
static int INVALID_CARDINALITY
          Invalid cardinality.
static int INVALID_CONFIGURATION
          Invalid configuration.
protected static IntegerEnumeration.ReflectiveMapper mapper
           
static int MEDIA_ACCESS_FAILURE
          Persistent media access error.
static int NO_RESOURCE
          A resource does not exist.
static int NO_RESPONSE
          No response available
static int NONE
          No error condition
static int NOT_AVAILABLE
          Information is not available.
static int NOT_FOUND
          An information or resource could not be found.
static int NOT_IMPLEMENTED
          Unimplemented operation or action.
static int NOT_SUPPORTED
          Unsupported operation or action.
static int PARSE_FAILURE
          Parse error
static int PROCESSING_FAILURE
          Processing failure
static int QUOTA_EXCEEDED
          The resource usage exceeded the allowed range
static int ROLLBACK
          A ROLLBACK exception is thrown when the transaction has been marked for rollback only or the transaction has been rolled back instead of committed.
static int SECURITY_FAILURE
          A security failure
static int SYSTEM_EXCEPTION
          A system exception (Corba, EJB, ...)
static int TIMEOUT
          A timeout.
static int TOO_LARGE_RESULT_SET
          The result of a query is too large to be handled.
static int TOO_MANY_EVENT_LISTENERS
          The presence of a "TOO_MANY_EVENT_LISTENERS" clause on any given concrete implementation of the normally multicast "void addEventListener" event listener registration pattern is used to annotate that interface as implementing a unicast Listener special case, that is, that one and only one Listener may be registered on the particular event listener source concurrently.
static int TRANSACTION_FAILURE
          A transaction failure.
static int TRANSFORMATION_FAILURE
          A transformation failure
static int VALIDATION_FAILURE
          Validation failure
 
Constructor Summary
protected BasicException.Code()
          Avoid instantiation
 
Method Summary
static String toString(int value)
          Converst a value to the corresponding to the String.
static int toValue(String string)
          Finds the value corresponding to the String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DOMAIN

public static final String DEFAULT_DOMAIN
The default domain. Use this domain if there is no specific error domain defined and the error codes are negativ.

See Also:
Constant Field Values

NONE

public static final int NONE
No error condition

See Also:
Constant Field Values

ABORT

public static final int ABORT
An ABORT exception is thrown to report that a non-transactional unit of work has been aborted.

See Also:
Constant Field Values

ACTIVATION_FAILURE

public static final int ACTIVATION_FAILURE
Activation failure

See Also:
Constant Field Values

ASSERTION_FAILURE

public static final int ASSERTION_FAILURE
Assertion error.

Assertion errors signal "unexpected" exceptions such as programming errors.

See Also:
Constant Field Values

AUTHENTICATION_FAILURE

public static final int AUTHENTICATION_FAILURE
authentication failure.

See Also:
Constant Field Values

AUTHORIZATION_FAILURE

public static final int AUTHORIZATION_FAILURE
authorization failure.

See Also:
Constant Field Values

BAD_CONTEXT

public static final int BAD_CONTEXT
Error processing context

See Also:
Constant Field Values

BAD_MEMBER_NAME

public static final int BAD_MEMBER_NAME
Non-existing attribute or property.

See Also:
Constant Field Values

BAD_PARAMETER

public static final int BAD_PARAMETER
An error code that signals bad/inconsistent parameters.

See Also:
Constant Field Values

BAD_RESOURCE

public static final int BAD_RESOURCE
Wrong or bad resource.

See Also:
Constant Field Values

BAD_QUERY_CRITERIA

public static final int BAD_QUERY_CRITERIA
Bad query criteria.

See Also:
Constant Field Values

BAD_SEQUENCE_LENGTH

public static final int BAD_SEQUENCE_LENGTH
Invalid/Unexpected length (nr of elements) of a sequence.

See Also:
Constant Field Values

BIND_FAILURE

public static final int BIND_FAILURE
A bind to an object or service failed

See Also:
Constant Field Values

COMMUNICATION_FAILURE

public static final int COMMUNICATION_FAILURE
A communication failure

See Also:
Constant Field Values

CONCURRENT_ACCESS_FAILURE

public static final int CONCURRENT_ACCESS_FAILURE
A concurrent access error condition.

See Also:
Constant Field Values

CREATION_FAILURE

public static final int CREATION_FAILURE
The creation of a resource failed

See Also:
Constant Field Values

DEACTIVATION_FAILURE

public static final int DEACTIVATION_FAILURE
Deactivation failure

See Also:
Constant Field Values

DUPLICATE

public static final int DUPLICATE
Duplicate element

See Also:
Constant Field Values

GENERIC

public static final int GENERIC
This code is used for technical error conditions such as NullPointerExceptions, ClassNotFoundExceptions, ... .

See Also:
Constant Field Values

HEURISTIC

public static final int HEURISTIC
A HEURISTIC exception is thrown by the commit operation to indicate that a heuristic decision was made and that some relevant updates have been committed and others have been rolled back.

See Also:
Constant Field Values

ILLEGAL_STATE

public static final int ILLEGAL_STATE
Signals that a method has been invoked at an illegal or inappropriate time. In other words, the environment or application is not in an appropriate state for the requested operation.

See Also:
Constant Field Values

INITIALIZATION_FAILURE

public static final int INITIALIZATION_FAILURE
A initialization failure

See Also:
Constant Field Values

INVALID_CARDINALITY

public static final int INVALID_CARDINALITY
Invalid cardinality.

See Also:
Constant Field Values

INVALID_CONFIGURATION

public static final int INVALID_CONFIGURATION
Invalid configuration.

See Also:
Constant Field Values

TRANSFORMATION_FAILURE

public static final int TRANSFORMATION_FAILURE
A transformation failure

See Also:
Constant Field Values

MEDIA_ACCESS_FAILURE

public static final int MEDIA_ACCESS_FAILURE
Persistent media access error. Files, databases, or any other external resource cannot be accessed

See Also:
Constant Field Values

NO_RESOURCE

public static final int NO_RESOURCE
A resource does not exist.

See Also:
Constant Field Values

NOT_AVAILABLE

public static final int NOT_AVAILABLE
Information is not available.

This exception code means that the request itself is valid but the requested data is not available at the moment. (A specific stock quote for example might be unavailable due to the fact that corresponding market is not opened yet.)

See Also:
Constant Field Values

NOT_FOUND

public static final int NOT_FOUND
An information or resource could not be found.

See Also:
Constant Field Values

NOT_IMPLEMENTED

public static final int NOT_IMPLEMENTED
Unimplemented operation or action.

See Also:
Constant Field Values

NO_RESPONSE

public static final int NO_RESPONSE
No response available

See Also:
Constant Field Values

NOT_SUPPORTED

public static final int NOT_SUPPORTED
Unsupported operation or action.

See Also:
Constant Field Values

PARSE_FAILURE

public static final int PARSE_FAILURE
Parse error

See Also:
Constant Field Values

PROCESSING_FAILURE

public static final int PROCESSING_FAILURE
Processing failure

See Also:
Constant Field Values

QUOTA_EXCEEDED

public static final int QUOTA_EXCEEDED
The resource usage exceeded the allowed range

See Also:
Constant Field Values

ROLLBACK

public static final int ROLLBACK
A ROLLBACK exception is thrown when the transaction has been marked for rollback only or the transaction has been rolled back instead of committed.

See Also:
Constant Field Values

SECURITY_FAILURE

public static final int SECURITY_FAILURE
A security failure

See Also:
Constant Field Values

SYSTEM_EXCEPTION

public static final int SYSTEM_EXCEPTION
A system exception (Corba, EJB, ...)

See Also:
Constant Field Values

TIMEOUT

public static final int TIMEOUT
A timeout.

See Also:
Constant Field Values

TOO_LARGE_RESULT_SET

public static final int TOO_LARGE_RESULT_SET
The result of a query is too large to be handled.

This exception is thrown when a method produces a result that exceeds a size-related limit. This can happen, for example, when the size of the result exceeds some implementation-specific limit.

See Also:
Constant Field Values

TOO_MANY_EVENT_LISTENERS

public static final int TOO_MANY_EVENT_LISTENERS
The presence of a "TOO_MANY_EVENT_LISTENERS" clause on any given concrete implementation of the normally multicast "void addEventListener" event listener registration pattern is used to annotate that interface as implementing a unicast Listener special case, that is, that one and only one Listener may be registered on the particular event listener source concurrently.

See Also:
Constant Field Values

TRANSACTION_FAILURE

public static final int TRANSACTION_FAILURE
A transaction failure. Used with severe transaction manager problems. For all other causes use specific exceptions like CONCURRENT_ACCESS_FAILURE or TIMEOUT

See Also:
CONCURRENT_ACCESS_FAILURE, TIMEOUT, Constant Field Values

VALIDATION_FAILURE

public static final int VALIDATION_FAILURE
Validation failure

See Also:
Constant Field Values

mapper

protected static final IntegerEnumeration.ReflectiveMapper mapper
Constructor Detail

BasicException.Code

protected BasicException.Code()
Avoid instantiation

Method Detail

toValue

public static int toValue(String string)
Finds the value corresponding to the String.

This method is case-sensitive.

Parameters:
source -
Throws:
IllegalArgumentException - if no such value is found

toString

public static String toString(int value)
Converst a value to the corresponding to the String.

The value's numeric string representation is returned if it can't be found.



This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.