|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.sblim.wbem.cim.CIMException
This class is the super class for classes used to describe exceptional CIM conditions. Standard status codes are marked starts with the CIM prefix as part of the status message. Extended status codes are start with the EXT_ prefix and must be added in classes extending the CIMException.
Field Summary | |
static java.lang.String |
CIM_ERR_ACCESS_DENIED
CIM Status Code value: Access to a CIM resource is not available, or the logon attempt to the CIM Server failed. |
static java.lang.String |
CIM_ERR_ALREADY_EXISTS
CIM Status Code value: The CIM object (class or instance) already exists. |
static java.lang.String |
CIM_ERR_CLASS_HAS_CHILDREN
CIM Status Code value: The CIM class has subclasses. |
static java.lang.String |
CIM_ERR_CLASS_HAS_INSTANCES
CIM Status Code value: One or more instances of this CIM class exist. |
static java.lang.String |
CIM_ERR_FAILED
CIM Status Code value: General error without more specific information. |
static java.lang.String |
CIM_ERR_INVALID_CLASS
CIM Status Code value: The CIM class does not exist in the target CIM namespace. |
static java.lang.String |
CIM_ERR_INVALID_NAMESPACE
CIM Status Code value: The target CIM namespace does not exist in the CIM Server. |
static java.lang.String |
CIM_ERR_INVALID_PARAMETER
CIM Status Code value: One or more parameter values passed to the CIM method or Java method are not valid. |
static java.lang.String |
CIM_ERR_INVALID_QUERY
CIM Status Code value: The query is not valid for the specified query language. |
static java.lang.String |
CIM_ERR_INVALID_SUPERCLASS
CIM Status Code value: The CIM superclass does not exist. |
static java.lang.String |
CIM_ERR_LOW_ON_MEMORY
Origin: Not clear. |
static java.lang.String |
CIM_ERR_METHOD_NOT_AVAILABLE
CIM Status Code value: The CIM method is not supported by the CIM Provider for the class. |
static java.lang.String |
CIM_ERR_METHOD_NOT_FOUND
CIM Status Code value: The CIM method is not defined on the class. |
static java.lang.String |
CIM_ERR_NO_SUCH_PROPERTY
CIM Status Code value: The CIM property is not defined on the class. |
static java.lang.String |
CIM_ERR_NOT_FOUND
CIM Status Code value: For CIM Server/Provider originated errors, the CIM object (instance or class) does not exist in the target CIM namespace. |
static java.lang.String |
CIM_ERR_NOT_IMPLEMENTED
Origin: Not clear. |
static java.lang.String |
CIM_ERR_NOT_SUPPORTED
CIM Status Code value: The CIM operation is not supported by the CIM Server/Provider. |
static java.lang.String |
CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED
CIM Status Code value: The query language is not recognized or supported. |
static java.lang.String |
CIM_ERR_TYPE_MISMATCH
CIM Status Code value: The value supplied is not compatible with the CIM type. |
protected static java.lang.String[] |
CIM_ERROR_NAMES
|
static java.lang.String |
IBM_ERR_TIMED_OUT
Origin: Not clear. |
static java.lang.String |
IBM_ERR_VER_ERROR
Origin: Not clear. |
Constructor Summary | |
CIMException()
Constructs a CIMException with no detail message. |
|
CIMException(java.lang.String pReason)
Constructs a CIMException with the specified message. |
|
CIMException(java.lang.String pReason,
java.lang.Object pExtendedReason)
Constructs a CIMException with the specified message and one extended reason parameter. |
|
CIMException(java.lang.String pReason,
java.lang.Object[] pExtendedReason)
Constructs a CIMException with the specified message and one extended reason parameter. |
|
CIMException(java.lang.String pReason,
java.lang.Object pExtendedReason1,
java.lang.Object pExtendedReason2)
Constructs a CIMException with the specified message and one extended reason parameter. |
|
CIMException(java.lang.String pReason,
java.lang.Object pExtendedReason1,
java.lang.Object pExtendedReason2,
java.lang.Object pExtendedReason3)
Constructs a CIMException with the specified message and one extended reason parameter. |
|
CIMException(java.lang.String pReason,
java.lang.Throwable pThrowable)
Constructs a CIMException with the specified message and one extended reason parameter. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.lang.Throwable |
getCause()
Gets the thowable object which causes this exception. |
java.lang.String |
getDescription()
Returns a description for this exception. |
java.lang.String |
getID()
Gets the reason for this exception. |
java.lang.String |
getMessage()
Gets the message associated to this exception. |
java.lang.Object[] |
getParams()
Gets the extended reason for this exception. |
int |
getStatusCode()
Returns the status code that may be returned by a conforming CIM Server application as the value of the CODE attribute of an |
static int |
getStatusCode(java.lang.String pMessage)
Returns the status code that may be returned by a conforming CIM Server application as the value of the CODE attribute of an |
static java.lang.String |
getStatusFromCode(int i)
Returns the string representation of the status code. |
int |
hashCode()
|
java.lang.Throwable |
initCause(java.lang.Throwable pCause)
|
void |
setDescription(java.lang.String pDescription)
Sets a description for this exception. |
void |
setParams(java.lang.Object[] pReason)
Specifies the extended reason for this exception. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String CIM_ERR_FAILED
public static final java.lang.String CIM_ERR_ACCESS_DENIED
public static final java.lang.String CIM_ERR_INVALID_NAMESPACE
public static final java.lang.String CIM_ERR_INVALID_PARAMETER
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_NOT_SUPPORTED
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_SUPERCLASS
public static final java.lang.String CIM_ERR_ALREADY_EXISTS
public static final java.lang.String CIM_ERR_NO_SUCH_PROPERTY
public static final java.lang.String CIM_ERR_TYPE_MISMATCH
public static final java.lang.String CIM_ERR_LOW_ON_MEMORY
public static final java.lang.String CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED
public static final java.lang.String CIM_ERR_INVALID_QUERY
public static final java.lang.String CIM_ERR_METHOD_NOT_AVAILABLE
public static final java.lang.String CIM_ERR_METHOD_NOT_FOUND
public static final java.lang.String CIM_ERR_NOT_IMPLEMENTED
public static final java.lang.String IBM_ERR_VER_ERROR
public static final java.lang.String IBM_ERR_TIMED_OUT
protected static final java.lang.String[] CIM_ERROR_NAMES
Constructor Detail |
public CIMException()
public CIMException(java.lang.String pReason)
pReason
- -
a symbolic name of the CIMException. e.g. CIM_ERR_FAILED,
CIM_ERR_NOT_FOUND, etc.public CIMException(java.lang.String pReason, java.lang.Object pExtendedReason)
pReason
- -
a symbolic name of the CIMException. e.g. CIM_ERR_FAILED,
CIM_ERR_NOT_FOUND, etc.pExtendedReason
- extended reason describing the exception.public CIMException(java.lang.String pReason, java.lang.Object pExtendedReason1, java.lang.Object pExtendedReason2)
pReason
- -
a symbolic name of the CIMException. e.g. CIM_ERR_FAILED,
CIM_ERR_NOT_FOUND, etc.pExtendedReason1
- first extended reason describing the exception.pExtendedReason2
- second extended reason describing the exception.public CIMException(java.lang.String pReason, java.lang.Object pExtendedReason1, java.lang.Object pExtendedReason2, java.lang.Object pExtendedReason3)
pReason
- -
a symbolic name of the CIMException. e.g. CIM_ERR_FAILED,
CIM_ERR_NOT_FOUND, etc.pExtendedReason1
- first extended reason describing the exception.pExtendedReason2
- second extended reason describing the exception.pExtendedReason3
- third extended reason describing the exception.public CIMException(java.lang.String pReason, java.lang.Object[] pExtendedReason)
pReason
- -
a symbolic name of the CIMException. e.g. CIM_ERR_FAILED,
CIM_ERR_NOT_FOUND, etc.pExtendedReason
- an array of extended reasons describing the exception.public CIMException(java.lang.String pReason, java.lang.Throwable pThrowable)
pReason
- -
a symbolic name of the CIMException. e.g. CIM_ERR_FAILED,
CIM_ERR_NOT_FOUND, etc.pThrowable
- the original cause for this exception.Method Detail |
public java.lang.Throwable initCause(java.lang.Throwable pCause)
public java.lang.String getID()
public void setDescription(java.lang.String pDescription)
pDescription
- public java.lang.String getDescription()
public java.lang.String toString()
public int getStatusCode()
public static int getStatusCode(java.lang.String pMessage)
pMessage
- The status code string (i.e. "CIM_ERR_FAILED")
public static java.lang.String getStatusFromCode(int i)
i
- an integer representing the status code
public void setParams(java.lang.Object[] pReason)
pReason
- The extended reasonpublic java.lang.Object[] getParams()
public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String getMessage()
public java.lang.Throwable getCause()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |