|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.sun.wbem.cim.CIMException
Superclass of classes used to represent exceptional CIM conditions. These exceptions are recoverable by user programs and therefore must be declared in the throws clause of a method and caught by using try/catch statements. Any method that throws any instance of CIMException that is not a RuntimeException must declare the CIMException(s) in its throws clause as part of the method's declaration. This is a Java language requirement. Any method that calls this method must either catch the exception(s) by using try/catch statements or declare the exception(s) in its own throws clause.
| Field Summary | |
static java.lang.String |
CIM_ERR_ALREADY_EXISTS
Element already exists. |
static java.lang.String |
CIM_ERR_CLASS_HAS_CHILDREN
Class has subclasses. |
static java.lang.String |
CIM_ERR_CLASS_HAS_INSTANCES
Class has instances. |
static java.lang.String |
CIM_ERR_FAILED
General CIMException. |
static java.lang.String |
CIM_ERR_INVALID_CLASS
Invalid class specified. |
static java.lang.String |
CIM_ERR_INVALID_NAMESPACE
Invalid namespace specified. |
static java.lang.String |
CIM_ERR_INVALID_PARAMETER
Invalid parameter is passed to a method. |
static java.lang.String |
CIM_ERR_INVALID_QUERY
Invalid query. |
static java.lang.String |
CIM_ERR_LOW_ON_MEMORY
Low memory. |
static java.lang.String |
CIM_ERR_NOT_FOUND
Element cannot be found. |
static java.lang.String |
CIM_ERR_NOT_SUPPORTED
The action is not supported. |
static java.lang.String |
DEFAULT
Default cim exception. |
static java.lang.String |
PDEFAULT
Default cim exception with one parameter. |
static java.lang.String |
VER_ERROR
This error is thrown when a client tries to connect to a CIM object manager which does not support the version of the client. |
| Constructor Summary | |
CIMException()
Contructs a CIMException with no detail message. |
|
CIMException(java.lang.String s)
Creates a CIMException with the specified message. |
|
CIMException(java.lang.String s,
java.lang.Object param)
Creates a CIMException with the specified message and one exception parameter. |
|
CIMException(java.lang.String s,
java.lang.Object[] param)
Creates a CIMException with the specified message and an array of exception parameters. |
|
CIMException(java.lang.String s,
java.lang.Object param1,
java.lang.Object param2)
Creates a CIMException with the specified message and two exception parameters. |
|
CIMException(java.lang.String s,
java.lang.Object param1,
java.lang.Object param2,
java.lang.Object param3)
Creates a CIMException with the specified message and three exception parameters. |
|
| Method Summary | |
java.lang.String |
getID()
Returns the detail message for this exception. |
java.lang.Object[] |
getParams()
Returns the parameters for this exception. |
java.lang.String |
getXmlCode(int code)
Gets the name when you know the code. |
int |
getXmlCode(java.lang.String s)
Errors in CIM Operations over HTTP have to be reported as integers. |
boolean |
isXmlCode(java.lang.String s)
Returns true if the exception is a valid XML exception |
void |
setParams(java.lang.Object[] parm)
Sets the substitution args for the exception. |
java.lang.String |
toString()
Prints out the ID and a comma separated list of parameters on a new line. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
getMessage,
printStackTrace,
printStackTrace,
printStackTrace |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String DEFAULT
public static final java.lang.String PDEFAULT
public static final java.lang.String CIM_ERR_FAILED
public static final java.lang.String CIM_ERR_NOT_SUPPORTED
public static final java.lang.String VER_ERROR
public static final java.lang.String CIM_ERR_INVALID_PARAMETER
public static final java.lang.String CIM_ERR_INVALID_NAMESPACE
public static final java.lang.String CIM_ERR_INVALID_CLASS
public static final java.lang.String CIM_ERR_NOT_FOUND
public static final java.lang.String CIM_ERR_ALREADY_EXISTS
public static final java.lang.String CIM_ERR_CLASS_HAS_CHILDREN
public static final java.lang.String CIM_ERR_CLASS_HAS_INSTANCES
public static final java.lang.String CIM_ERR_INVALID_QUERY
public static final java.lang.String CIM_ERR_LOW_ON_MEMORY
| Constructor Detail |
public CIMException()
public CIMException(java.lang.String s)
s - the detail message.
public CIMException(java.lang.String s,
java.lang.Object param)
s - the detail message.param - exception parameter.
public CIMException(java.lang.String s,
java.lang.Object param1,
java.lang.Object param2)
s - the detail message.param1 - first Exception parameter.param2 - second Exception parameter.
public CIMException(java.lang.String s,
java.lang.Object param1,
java.lang.Object param2,
java.lang.Object param3)
s - the detail message.param1 - first Exception parameter.param2 - second Exception parameter.param3 - third Exception parameter.
public CIMException(java.lang.String s,
java.lang.Object[] param)
s - the detail message.param - array of exception parameters.| Method Detail |
public java.lang.String getID()
public java.lang.Object[] getParams()
public void setParams(java.lang.Object[] parm)
public java.lang.String toString()
public int getXmlCode(java.lang.String s)
public java.lang.String getXmlCode(int code)
public boolean isXmlCode(java.lang.String s)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||