org.openmdx.compatibility.base.exception
Class CommonExceptionCodes

java.lang.Object
  extended by org.openmdx.compatibility.base.exception.CommonExceptionCodes
Direct Known Subclasses:
CommonExceptions

public class CommonExceptionCodes
extends Object


Field Summary
static int ABORT
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#ABORT
static int ACTIVATION_FAILURE
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#ACTIVATION_FAILURE
static int ASSERTION_FAILURE
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#ASSERTION_FAILURE
static int AUTHORIZATION_FAILURE
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#AUTHORIZATION_FAILURE
static int BAD_MEMBER_NAME
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#BAD_MEMBER_NAME
static int BAD_PARAMETER
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#BAD_PARAMETER
static int BAD_QUERY_CRITERIA
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#BAD_QUERY_CRITERIA
static int BAD_SEQUENCE_LENGTH
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#BAD_SEQUENCE_LENGTH
static int CONCURRENT_ACCESS_FAILURE
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#CONCURRENT_ACCESS_FAILURE
static int DATA_CONVERSION
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#DATA_CONVERSION
static int DEACTIVATION_FAILURE
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#DEACTIVATION_FAILURE
static String DOMAIN
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#DEFAULT_DOMAIN
static int DUPLICATE
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#DUPLICATE
static int HEURISTIC
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#HEURISTIC
static int ILLEGAL_STATE
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#ILLEGAL_STATE
static int INTERNAL
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#GENERIC
static int INVALID_CONFIGURATION
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#INVALID_CONFIGURATION
static int MEDIA_ACCESS_FAILURE
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#MEDIA_ACCESS_FAILURE
static int NONE
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#NONE
static int NOT_AVAILABLE
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#NOT_AVAILABLE
static int NOT_FOUND
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#NOT_FOUND
static int NOT_SUPPORTED
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#NOT_SUPPORTED
static int PROCESSING_FAILURE
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#PROCESSING_FAILURE
static int QUOTA_EXCEEDED
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#QUOTA_EXCEEDED
static int ROLLBACK
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#ROLLBACK
static int TIMEOUT
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#TIMEOUT
static int TOO_LARGE_RESULT_SET
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#TOO_LARGE_RESULT_SET
static int TOO_MANY_EVENT_LISTENERS
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#TOO_MANY_EVENT_LISTENERS
 
Constructor Summary
protected CommonExceptionCodes()
           
 
Method Summary
static int fromString(String code)
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#toValue(String)
static int max()
          Deprecated.  
static int min()
          Deprecated.  
static String toString(int code)
          Deprecated. org.openmdx.base.exception.BaseExceptionCode#toString(int)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOMAIN

public static final String DOMAIN
Deprecated. org.openmdx.base.exception.BaseExceptionCode#DEFAULT_DOMAIN
Common exception codes

See Also:
Constant Field Values

NONE

public static final int NONE
Deprecated. org.openmdx.base.exception.BaseExceptionCode#NONE
An error code that signals a successful operation

See Also:
Constant Field Values

INTERNAL

public static final int INTERNAL
Deprecated. org.openmdx.base.exception.BaseExceptionCode#GENERIC
Technical internal error conditions such as NullPointerExceptions, ClassNotFoundExceptions, etc.

This exception must never be a top level Exception in the stack of exceptions, so immediately remap this exception to another application oriented exception.

See Also:
Constant Field Values

ACTIVATION_FAILURE

public static final int ACTIVATION_FAILURE
Deprecated. org.openmdx.base.exception.BaseExceptionCode#ACTIVATION_FAILURE
Activation failure.

See Also:
Constant Field Values

PROCESSING_FAILURE

public static final int PROCESSING_FAILURE
Deprecated. org.openmdx.base.exception.BaseExceptionCode#PROCESSING_FAILURE
Failure during a components main activity, excluding the activation and deactivation phase.

See Also:
Constant Field Values

DEACTIVATION_FAILURE

public static final int DEACTIVATION_FAILURE
Deprecated. org.openmdx.base.exception.BaseExceptionCode#DEACTIVATION_FAILURE
Deactivation failure

See Also:
Constant Field Values

ASSERTION_FAILURE

public static final int ASSERTION_FAILURE
Deprecated. org.openmdx.base.exception.BaseExceptionCode#ASSERTION_FAILURE
Assertion error.

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

See Also:
Constant Field Values

INVALID_CONFIGURATION

public static final int INVALID_CONFIGURATION
Deprecated. org.openmdx.base.exception.BaseExceptionCode#INVALID_CONFIGURATION
Invalid configuration.

See Also:
Constant Field Values

NOT_SUPPORTED

public static final int NOT_SUPPORTED
Deprecated. org.openmdx.base.exception.BaseExceptionCode#NOT_SUPPORTED
Unsupported operation or action.

See Also:
Constant Field Values

AUTHORIZATION_FAILURE

public static final int AUTHORIZATION_FAILURE
Deprecated. org.openmdx.base.exception.BaseExceptionCode#AUTHORIZATION_FAILURE
Access denied.

See Also:
Constant Field Values

NOT_FOUND

public static final int NOT_FOUND
Deprecated. org.openmdx.base.exception.BaseExceptionCode#NOT_FOUND
Lookup failed.

See Also:
Constant Field Values

NOT_AVAILABLE

public static final int NOT_AVAILABLE
Deprecated. org.openmdx.base.exception.BaseExceptionCode#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

MEDIA_ACCESS_FAILURE

public static final int MEDIA_ACCESS_FAILURE
Deprecated. org.openmdx.base.exception.BaseExceptionCode#MEDIA_ACCESS_FAILURE
Persistent media access error. Files, databases, or any other external nresource cannot be accessed

See Also:
Constant Field Values

QUOTA_EXCEEDED

public static final int QUOTA_EXCEEDED
Deprecated. org.openmdx.base.exception.BaseExceptionCode#QUOTA_EXCEEDED
The resource usage exceeded the allowed range

See Also:
Constant Field Values

TOO_LARGE_RESULT_SET

public static final int TOO_LARGE_RESULT_SET
Deprecated. org.openmdx.base.exception.BaseExceptionCode#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

BAD_PARAMETER

public static final int BAD_PARAMETER
Deprecated. org.openmdx.base.exception.BaseExceptionCode#BAD_PARAMETER
An error code that signals bad/inconsistent parameters.

See Also:
Constant Field Values

BAD_SEQUENCE_LENGTH

public static final int BAD_SEQUENCE_LENGTH
Deprecated. org.openmdx.base.exception.BaseExceptionCode#BAD_SEQUENCE_LENGTH
Invalid/Unexpected length (nr of elements) of a CORBA sequence.

See Also:
Constant Field Values

BAD_QUERY_CRITERIA

public static final int BAD_QUERY_CRITERIA
Deprecated. org.openmdx.base.exception.BaseExceptionCode#BAD_QUERY_CRITERIA
Bad format or composition of selection criteria.

See Also:
Constant Field Values

DATA_CONVERSION

public static final int DATA_CONVERSION
Deprecated. org.openmdx.base.exception.BaseExceptionCode#DATA_CONVERSION
Data conversion error.

See Also:
Constant Field Values

DUPLICATE

public static final int DUPLICATE
Deprecated. org.openmdx.base.exception.BaseExceptionCode#DUPLICATE
Duplicate element

See Also:
Constant Field Values

CONCURRENT_ACCESS_FAILURE

public static final int CONCURRENT_ACCESS_FAILURE
Deprecated. org.openmdx.base.exception.BaseExceptionCode#CONCURRENT_ACCESS_FAILURE
A concurrent access error condition.

See Also:
Constant Field Values

TIMEOUT

public static final int TIMEOUT
Deprecated. org.openmdx.base.exception.BaseExceptionCode#TIMEOUT
An optimistic locking error condition.

See Also:
Constant Field Values

ILLEGAL_STATE

public static final int ILLEGAL_STATE
Deprecated. org.openmdx.base.exception.BaseExceptionCode#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

TOO_MANY_EVENT_LISTENERS

public static final int TOO_MANY_EVENT_LISTENERS
Deprecated. org.openmdx.base.exception.BaseExceptionCode#TOO_MANY_EVENT_LISTENERS
The TOO_MANY_EVENT_LISTENERS exception is used as part of the SPICE event model to annotate and implement a unicast special case of a multicast Event Source.

The presence of a "throws ServiceException 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

BAD_MEMBER_NAME

public static final int BAD_MEMBER_NAME
Deprecated. org.openmdx.base.exception.BaseExceptionCode#BAD_MEMBER_NAME
Bad member name specified, e.g. non-existing attribute or property.

See Also:
Constant Field Values

ROLLBACK

public static final int ROLLBACK
Deprecated. org.openmdx.base.exception.BaseExceptionCode#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

HEURISTIC

public static final int HEURISTIC
Deprecated. org.openmdx.base.exception.BaseExceptionCode#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

ABORT

public static final int ABORT
Deprecated. org.openmdx.base.exception.BaseExceptionCode#ABORT
An ABORT exception is thrown to report that a non-transactional unit of work has been aborted.

See Also:
Constant Field Values
Constructor Detail

CommonExceptionCodes

protected CommonExceptionCodes()
Method Detail

min

public static int min()
Deprecated. 

Returns the smallest defined integer constant or Integer.MAX_VALUE if no integer constant is defined.

Returns:
an int

max

public static int max()
Deprecated. 

Returns the biggest defined integer constant or Integer.MIN_VALUE if no integer constant is defined.

Returns:
an int

toString

public static String toString(int code)
Deprecated. org.openmdx.base.exception.BaseExceptionCode#toString(int)

Returns a string representation of the passed code

Parameters:
code - a code to be stringified
Returns:
a stringified code

fromString

public static int fromString(String code)
Deprecated. org.openmdx.base.exception.BaseExceptionCode#toValue(String)

Returns the code of the passed code's string representation. The string representation is case insensitive.

Parameters:
code - a stringified code
Returns:
a code
Throws:
throws - an IllegalArgumentException if the stringified code cannot be resolved


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