Class CIMError
- java.lang.Object
-
- org.sblim.cimclient.internal.wbem.CIMError
-
public class CIMError extends java.lang.ObjectClass CIMError is required for IndicationHandling and CIM-XML parsing.
-
-
Constructor Summary
Constructors Constructor Description CIMError()Construct a CIMError object using the default status (CIM_ERR_FAIL).CIMError(int pStatus)Construct a CIMError object with the specified status code.CIMError(int pStatus, java.lang.String pMsg)Ctor.CIMError(int pStatus, java.lang.String pMsg, CIMInstance[] pInstances)Ctor.CIMError(WBEMException pEx)Construct a CIMError object from the given WBEMException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)CIMInstance[]getCIMInstances()getCIMInstancesintgetCode()Gets the status code.java.lang.StringgetDescription()Gets the description associated with this status.inthashCode()voidsetCode(int pStatus)Specifies the status code.voidsetDescription(java.lang.String pDescription)Specifies the description associated to this status.java.lang.StringtoString()
-
-
-
Constructor Detail
-
CIMError
public CIMError()
Construct a CIMError object using the default status (CIM_ERR_FAIL).
-
CIMError
public CIMError(WBEMException pEx)
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
public CIMError(int pStatus, java.lang.String pMsg)Ctor.- Parameters:
pStatus-pMsg-
-
CIMError
public CIMError(int pStatus, java.lang.String pMsg, CIMInstance[] pInstances)Ctor.- Parameters:
pStatus-pMsg-pInstances-
-
-
Method Detail
-
getCode
public int getCode()
Gets the status code.- Returns:
- The status code
-
getDescription
public java.lang.String getDescription()
Gets the description associated with this status.- Returns:
- The description
-
getCIMInstances
public CIMInstance[] getCIMInstances()
getCIMInstances- Returns:
- CIMInstance[]
-
setCode
public void setCode(int pStatus)
Specifies the status code.- Parameters:
pStatus-
-
setDescription
public void setDescription(java.lang.String pDescription)
Specifies the description associated to this status.- Parameters:
pDescription-
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-