Class CIMError


  • public class CIMError
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor 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 status, java.lang.String msg)  
      CIMError​(CIMException pCimException)
      Construct a CIMError object from the given CIMException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • 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,
                        java.lang.String msg)
    • Method Detail

      • getCode

        public int getCode()
        Gets the status code.
        Returns:
        The status code
      • getDescription

        public java.lang.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​(java.lang.String pDescription)
        Specifies the description associated to this status.
        Parameters:
        pDescription -
      • toString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object