public class CIMError
extends java.lang.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,
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
CIMInstance[] |
getCIMInstances()
getCIMInstances
|
int |
getCode()
Gets the status code.
|
java.lang.String |
getDescription()
Gets the description associated with this status.
|
int |
hashCode() |
void |
setCode(int pStatus)
Specifies the status code.
|
void |
setDescription(java.lang.String pDescription)
Specifies the description associated to this status.
|
java.lang.String |
toString() |
public CIMError()
public CIMError(WBEMException pEx)
pEx
- public CIMError(int pStatus)
pStatus
- The status codepublic CIMError(int pStatus, java.lang.String pMsg)
pStatus
- pMsg
- public CIMError(int pStatus, java.lang.String pMsg, CIMInstance[] pInstances)
pStatus
- pMsg
- pInstances
- public int getCode()
public java.lang.String getDescription()
public CIMInstance[] getCIMInstances()
public void setCode(int pStatus)
pStatus
- public void setDescription(java.lang.String pDescription)
pDescription
- public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2005, 2011 IBM Corporation. All Rights Reserved.