Class CIMError
java.lang.Object
org.sblim.cimclient.internal.wbem.CIMError
Class CIMError is required for IndicationHandling and CIM-XML parsing.
-
Constructor Summary
ConstructorsConstructorDescriptionCIMError()
Construct a CIMError object using the default status (CIM_ERR_FAIL).CIMError
(int pStatus) Construct a CIMError object with the specified status code.Ctor.CIMError
(int pStatus, String pMsg, CIMInstance[] pInstances) Ctor.CIMError
(WBEMException pEx) Construct a CIMError object from the given WBEMException. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCIMInstancesint
getCode()
Gets the status code.Gets the description associated with this status.int
hashCode()
void
setCode
(int pStatus) Specifies the status code.void
setDescription
(String pDescription) Specifies the description associated to this status.toString()
-
Constructor Details
-
CIMError
public CIMError()Construct a CIMError object using the default status (CIM_ERR_FAIL). -
CIMError
Construct a CIMError object from the given WBEMException.- Parameters:
pEx
-
-
CIMError
public CIMError(int pStatus) Construct a CIMError object with the specified status code.- Parameters:
pStatus
- The status code
-
CIMError
-
CIMError
Ctor.- Parameters:
pStatus
-pMsg
-pInstances
-
-
-
Method Details
-
getCode
public int getCode()Gets the status code.- Returns:
- The status code
-
getDescription
Gets the description associated with this status.- Returns:
- The description
-
getCIMInstances
-
setCode
public void setCode(int pStatus) Specifies the status code.- Parameters:
pStatus
-
-
setDescription
Specifies the description associated to this status.- Parameters:
pDescription
-
-
toString
-
equals
-
hashCode
-