public class WBEMException
extends java.lang.Exception
WBEMException
is returned when there is a WBEM Operations error.
WBEMException
includes the following:ID
- The ID
of the exceptionDescription
- Brief description of the exceptionCIMInstance[]
- Optional array of CIM_Error
instancesModifier and Type | Field | Description |
---|---|---|
static int |
CIM_ERR_ACCESS_DENIED |
Access Denied Exception.
|
static int |
CIM_ERR_ALREADY_EXISTS |
Element already exists.
|
static int |
CIM_ERR_CLASS_HAS_CHILDREN |
Class has subclasses.
|
static int |
CIM_ERR_CLASS_HAS_INSTANCES |
Class has instances.
|
static int |
CIM_ERR_CONTINUATION_ON_ERROR_NOT_SUPPORTED |
The WBEM Server does not support continuation on error.
|
static int |
CIM_ERR_FAILED |
General Exception.
|
static int |
CIM_ERR_FILTERED_ENUMERATION_NOT_SUPPORTED |
Using a filter in the enumeration is not supported by the WBEM Server.
|
static int |
CIM_ERR_INVALID_CLASS |
Invalid class specified.
|
static int |
CIM_ERR_INVALID_ENUMERATION_CONTEXT |
The enumeration identified by the specified context cannot be found, is
in a closed state, does not exist, or is otherwise invalid.
|
static int |
CIM_ERR_INVALID_NAMESPACE |
Invalid namespace Exception.
|
static int |
CIM_ERR_INVALID_OPERATION_TIMEOUT |
The specified operation timeout is not supported by the WBEM Server.
|
static int |
CIM_ERR_INVALID_PARAMETER |
Invalid parameter is passed to a method.
|
static int |
CIM_ERR_INVALID_QUERY |
Invalid query.
|
static int |
CIM_ERR_INVALID_RESPONSE_DESTINATION |
The destination is invalid.
|
static int |
CIM_ERR_INVALID_SUPERCLASS |
The super class does not exist.
|
static int |
CIM_ERR_METHOD_NOT_AVAILABLE |
The method is not available.
|
static int |
CIM_ERR_METHOD_NOT_FOUND |
The method is not found.
|
static int |
CIM_ERR_NAMESPACE_NOT_EMPTY |
The namespace is not empty.
|
static int |
CIM_ERR_NO_SUCH_PROPERTY |
The property does not exist in the class/instance being manipulated.
|
static int |
CIM_ERR_NOT_FOUND |
Element cannot be found.
|
static int |
CIM_ERR_NOT_SUPPORTED |
The action is not supported.
|
static int |
CIM_ERR_PULL_CANNOT_BE_ABANDONED |
The attempt to abandon a concurrent Pull operation on the same
enumeration failed, the concurrent Pull operation proceeds normally.
|
static int |
CIM_ERR_PULL_HAS_BEEN_ABANDONED |
The Pull operation has been abandoned due to execution of a concurrent
CloseEnumeration operation on the same enumeration.
|
static int |
CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED |
The requested query language is not recognized.
|
static int |
CIM_ERR_SERVER_IS_SHUTTING_DOWN |
The WBEM Server is in the process of shutting down and cannot process the
operation at this time.
|
static int |
CIM_ERR_SERVER_LIMITS_EXCEEDED |
The WBEM Server has failed the operation based upon exceeding server
limits.
|
Constructor | Description |
---|---|
WBEMException(int pID) |
Constructs a new exception using the specified ID.
|
WBEMException(int pID,
java.lang.String pMessage) |
Constructs a new exception using the specified ID and detailed message.
|
WBEMException(int pID,
java.lang.String pMessage,
CIMInstance[] pErrors) |
Constructs a new exception using the specified ID, detailed message and
CIM_Error instances.
|
WBEMException(int pID,
java.lang.String pMessage,
CIMInstance[] pErrors,
java.lang.Throwable pCause) |
Constructs a new exception using the specified ID, detailed message,
CIM_Error instances and cause.
|
WBEMException(java.lang.String pMessage) |
Constructs a new exception using the specified detailed message.
|
Modifier and Type | Method | Description |
---|---|---|
CIMInstance[] |
getCIMErrors() |
Get the CIM Error Instances.
|
int |
getID() |
Returns the ID of the error.
|
java.lang.String |
toString() |
Prints out the ID and the optional detailed message.
|
public static final int CIM_ERR_ACCESS_DENIED
public static final int CIM_ERR_ALREADY_EXISTS
public static final int CIM_ERR_CLASS_HAS_CHILDREN
public static final int CIM_ERR_CLASS_HAS_INSTANCES
CIM_ERR_CLASS_HAS_CHILDREN
is thrown before
CIM_ERR_CLASS_HAS_INSTANCES
public static final int CIM_ERR_CONTINUATION_ON_ERROR_NOT_SUPPORTED
public static final int CIM_ERR_FAILED
public static final int CIM_ERR_FILTERED_ENUMERATION_NOT_SUPPORTED
public static final int CIM_ERR_INVALID_CLASS
public static final int CIM_ERR_INVALID_ENUMERATION_CONTEXT
public static final int CIM_ERR_INVALID_NAMESPACE
public static final int CIM_ERR_INVALID_OPERATION_TIMEOUT
public static final int CIM_ERR_INVALID_PARAMETER
public static final int CIM_ERR_INVALID_QUERY
public static final int CIM_ERR_INVALID_RESPONSE_DESTINATION
public static final int CIM_ERR_INVALID_SUPERCLASS
public static final int CIM_ERR_METHOD_NOT_AVAILABLE
public static final int CIM_ERR_METHOD_NOT_FOUND
public static final int CIM_ERR_NAMESPACE_NOT_EMPTY
public static final int CIM_ERR_NO_SUCH_PROPERTY
public static final int CIM_ERR_NOT_FOUND
public static final int CIM_ERR_NOT_SUPPORTED
public static final int CIM_ERR_PULL_CANNOT_BE_ABANDONED
public static final int CIM_ERR_PULL_HAS_BEEN_ABANDONED
public static final int CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED
public static final int CIM_ERR_SERVER_IS_SHUTTING_DOWN
public static final int CIM_ERR_SERVER_LIMITS_EXCEEDED
public WBEMException(int pID)
null
.pID
- The Error ID to use.java.lang.IllegalArgumentException
- If the pID does not match one of the predefined messages.public WBEMException(int pID, java.lang.String pMessage)
pID
- The error ID.pMessage
- The detailed message.java.lang.IllegalArgumentException
- If the pID does not match one of the predefined messages.public WBEMException(int pID, java.lang.String pMessage, CIMInstance[] pErrors)
pID
- The error ID.pMessage
- The detailed message.pErrors
- Array of CIM_Error instances.java.lang.IllegalArgumentException
- If the pID does not match one of the predefined messages.public WBEMException(int pID, java.lang.String pMessage, CIMInstance[] pErrors, java.lang.Throwable pCause)
pID
- The error ID.pMessage
- The detailed message.pErrors
- Array of CIM_Error instances.pCause
- Throwable
cause.java.lang.IllegalArgumentException
- If the pID does not match one of the predefined messages.public WBEMException(java.lang.String pMessage)
ID
will be CIM_ERR_FAILED
.pMessage
- The detailed message.public CIMInstance[] getCIMErrors()
null
if none.public int getID()
public java.lang.String toString()
toString
in class java.lang.Throwable
String
representation of the exception.Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.