org.sblim.wbem.client.indications

Class CIMError


public class CIMError
extends java.lang.Object

CIMError.java (C) Copyright IBM Corp. 2005 THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. You can obtain a current copy of the Common Public License from http://www.opensource.org/licenses/cpl1.0.php

Constructor Summary

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 status, String msg)
CIMError(CIMException pCimException)
Construct a CIMError object from the given CIMException.

Method Summary

boolean
equals(Object o)
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()

Constructor Details

CIMError

public CIMError()
Construct a CIMError object using the default status (CIM_ERR_FAIL).

CIMError

public CIMError(int pStatus)
Construct a CIMError object with the specified status code.
Parameters:
pStatus - The status code

CIMError

public CIMError(int status,
                String msg)

CIMError

public CIMError(CIMException pCimException)
Construct a CIMError object from the given CIMException.
Parameters:
pCimException -

Method Details

equals

public boolean equals(Object o)

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

hashCode

public int hashCode()

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 -

toString

public String toString()

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