org.sblim.cimclient.internal.wbem

Class CIMError

public class CIMError extends Object

Class CIMError is required for IndicationHandling and CIM-XML parsing.
Constructor Summary
CIMError()
Construct a CIMError object using the default status (CIM_ERR_FAIL).
CIMError(WBEMException pEx)
Construct a CIMError object from the given WBEMException.
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.
Method Summary
CIMInstance[]getCIMInstances()
getCIMInstances
intgetCode()
Gets the status code.
StringgetDescription()
Gets the description associated with this status.
voidsetCode(int pStatus)
Specifies the status code.
voidsetDescription(String pDescription)
Specifies the description associated to this status.

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, String pMsg)
Ctor.

Parameters: pStatus pMsg

CIMError

public CIMError(int pStatus, String pMsg, CIMInstance[] pInstances)
Ctor.

Parameters: pStatus pMsg pInstances

Method Detail

getCIMInstances

public CIMInstance[] getCIMInstances()
getCIMInstances

Returns: CIMInstance[]

getCode

public int getCode()
Gets the status code.

Returns: The status code

getDescription

public String getDescription()
Gets the description associated with this status.

Returns: The description

setCode

public void setCode(int pStatus)
Specifies the status code.

Parameters: pStatus

setDescription

public void setDescription(String pDescription)
Specifies the description associated to this status.

Parameters: pDescription

Copyright © 2005, 2010 IBM Corporation. All Rights Reserved.