Package net.aifusion.metamodel
Enum ExceptionReason
- All Implemented Interfaces:
Serializable
,Comparable<ExceptionReason>
,java.lang.constant.Constable
Reason for throwing a CIM Exception. See DSP0200 for definitions
- Author:
- Sharad Singhal
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription2- Access to a resource is not available to the client11- The operation cannot be invoked because an object already exists8- The operation cannot be invoked on this class because it has subclasses9- The operation cannot be invoked on this class because one or more instances of this class exist26 The CIM Server does not support continuation on error.1- A general error occurred that is not covered by a more specific error code25 Using a filter in the enumeration is not supported by the Server.5- The specified class does not exist21 The enumeration identified by the specified context cannot be found, is in a closed state, does not exist, or is otherwise invalid.3- The target namespace does not exist22 The specified operation timeout is not supported by the server4- One or more parameter values passed to the method are not valid15- The query is not valid for the specified query language10- The operation cannot be invoked because the specified superclass does not exist16- The extrinsic method cannot be invoked because it is not available17- The specified extrinsic method does not exist20- The specified Namespace is not empty12- The specified property does not exist6- The requested object cannot be found.7- The requested operation is not supported24 The attempt to abandon a concurrent Pull operation on the same enumeration failed, the concurrent Pull operation proceeds normally.23 The Pull operation has been abandoned due to execution of a concurrent CloseEnumeration operation on the same enumeration.14- The query language is not recognized or supported28 The Server is in the process of shutting down and cannot process the operation at this time.27 The CIM Server has failed the operation based upon exceeding server limits.13- The dataValue supplied is not compatible with the type -
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
Get the error code corresponding to this reasonGet a human-readable description for the reasontoString()
static ExceptionReason
Returns the enum constant of this type with the specified name.static ExceptionReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
FAILED
1- A general error occurred that is not covered by a more specific error code -
ACCESS_DENIED
2- Access to a resource is not available to the client -
INVALID_NAMESPACE
3- The target namespace does not exist -
INVALID_PARAMETER
4- One or more parameter values passed to the method are not valid -
INVALID_CLASS
5- The specified class does not exist -
NOT_FOUND
6- The requested object cannot be found. See also HTTP_NOT_FOUND -
NOT_SUPPORTED
7- The requested operation is not supported -
CLASS_HAS_CHILDREN
8- The operation cannot be invoked on this class because it has subclasses -
CLASS_HAS_INSTANCES
9- The operation cannot be invoked on this class because one or more instances of this class exist -
INVALID_SUPERCLASS
10- The operation cannot be invoked because the specified superclass does not exist -
ALREADY_EXISTS
11- The operation cannot be invoked because an object already exists -
NO_SUCH_PROPERTY
12- The specified property does not exist -
TYPE_MISMATCH
13- The dataValue supplied is not compatible with the type -
QUERY_LANGUAGE_NOT_SUPPORTED
14- The query language is not recognized or supported -
INVALID_QUERY
15- The query is not valid for the specified query language -
METHOD_NOT_AVAILABLE
16- The extrinsic method cannot be invoked because it is not available -
METHOD_NOT_FOUND
17- The specified extrinsic method does not exist -
NAMESPACE_NOT_EMPTY
20- The specified Namespace is not empty -
INVALID_ENUMERATION_CONTEXT
21 The enumeration identified by the specified context cannot be found, is in a closed state, does not exist, or is otherwise invalid. -
INVALID_OPERATION_TIMEOUT
22 The specified operation timeout is not supported by the server -
PULL_HAS_BEEN_ABANDONED
23 The Pull operation has been abandoned due to execution of a concurrent CloseEnumeration operation on the same enumeration. -
PULL_CANNOT_BE_ABANDONED
24 The attempt to abandon a concurrent Pull operation on the same enumeration failed, the concurrent Pull operation proceeds normally. -
FILTERED_ENUMERATION_NOT_SUPPORTED
25 Using a filter in the enumeration is not supported by the Server. -
CONTINUATION_ON_ERROR_NOT_SUPPORTED
26 The CIM Server does not support continuation on error. -
SERVER_LIMITS_EXCEEDED
27 The CIM Server has failed the operation based upon exceeding server limits. -
SERVER_IS_SHUTTING_DOWN
28 The Server is in the process of shutting down and cannot process the operation at this time.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
getCode
public int getCode()Get the error code corresponding to this reason- Returns:
- - error code
-
getDescription
Get a human-readable description for the reason- Returns:
- - string containing description
-
toString
- Overrides:
toString
in classEnum<ExceptionReason>
-