public class CIMError extends Object
Constructor and 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,
String pMsg)
Ctor.
|
CIMError(int pStatus,
String pMsg,
CIMInstance[] pInstances)
Ctor.
|
CIMError(WBEMException pEx)
Construct a CIMError object from the given WBEMException.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
CIMInstance[] |
getCIMInstances()
getCIMInstances
|
int |
getCode()
Gets the status code.
|
String |
getDescription()
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.
|
String |
toString() |
public CIMError()
public CIMError(WBEMException pEx)
pEx
- public CIMError(int pStatus)
pStatus
- The status codepublic CIMError(int pStatus, String pMsg)
pStatus
- pMsg
- public CIMError(int pStatus, String pMsg, CIMInstance[] pInstances)
pStatus
- pMsg
- pInstances
- public int getCode()
public String getDescription()
public CIMInstance[] getCIMInstances()
public void setCode(int pStatus)
pStatus
- public void setDescription(String pDescription)
pDescription
- Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.