javax.wbem
public class WBEMException extends Exception implements Serializable
WBEMException
is what all WBEM Operations return when there is
an error. WBEMException
includes the following:ID
- The ID
of the Exception
Description
- Brief description of the exceptionCIMInstance[]
- Optional array of CIM_Error
instances Field Summary | |
---|---|
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_FAILED
General Exception. |
static int | CIM_ERR_INVALID_CLASS
Invalid class specified. |
static int | CIM_ERR_INVALID_NAMESPACE
Invalid namespace Exception Thrown whem the specified
namespace does not exist. |
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_NOT_FOUND
Element cannot be found. |
static int | CIM_ERR_NOT_SUPPORTED
The action is not supported. |
static int | CIM_ERR_NO_SUCH_PROPERTY
The property does not exist in the class/instance being manipulated. |
static int | CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED
The requested query language is not recognized. |
static int | CIM_ERR_TYPE_MISMATCH
The value supplied is not compatible with the type. |
Constructor Summary | |
---|---|
WBEMException(int pID)
Constructs a new exception using the specified ID. | |
WBEMException(int pID, String pMessage)
Constructs a new exception using the specified ID and detailed message.
| |
WBEMException(int pID, String pMessage, CIMInstance[] pErrors)
Constructs a new exception using the specified ID, detailed message and
CIM_Error instances.
| |
WBEMException(int pID, String pMessage, CIMInstance[] pErrors, Throwable pCause)
Constructs a new exception using the specified ID, detailed message,
CIM_Error instances and cause.
| |
WBEMException(String pMessage)
Construces a new exception using the specified detailed message. |
Method Summary | |
---|---|
CIMInstance[] | getCIMErrors()
Get the CIM Error Instances.
|
int | getID()
Returns the ID of the error
|
String | getMessage() |
String | toString()
Prints out the ID and the optional detailed message.
|
CIM_ERR_CLASS_HAS_CHILDREN
is
thrown before CIM_ERR_CLASS_HAS_INSTANCES
Exception
Thrown whem the specified
namespace does not exist.null
.
Parameters: pID - The Error ID to use.
Parameters: pID - The error ID. pMessage - The detailed message.
Parameters: pID - The error ID pMessage - The detailed message. pErrors - Array of CIM_Error instances.
Parameters: pID -
The error ID. pMessage -
The detailed message. pErrors -
Array of CIM_Error instances. pCause -
Throwable
cause.
ID
will be CIM_ERR_FAILED
.
Parameters: pMessage - The detailed message.
Returns: Any CIM Error instances associated with this exception;
null
if none.
Returns: The ID of the error
Returns: A String
representation of the exception.
See Also: java.lang.Object#toString()