Class CIMError

java.lang.Object
org.sblim.wbem.client.indications.CIMError

public class CIMError extends Object
  • Constructor Details

    • CIMError

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

      public CIMError(CIMException pCimException)
      Construct a CIMError object from the given CIMException.
      Parameters:
      pCimException -
    • 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)
  • Method Details

    • 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 -
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object