com.ibm.openpages.api

Class ErrorCode

  • java.lang.Object
    • com.ibm.openpages.api.ErrorCode


  • public class ErrorCode
    extends java.lang.Object
    The Error Code which uniquely represents an OpenPages Error with a specific numeric Id. These codes may reference specific error message text and localized translations when creating exceptions.
    Since:
    7.2
    • Constructor Summary

      Constructors 
      Constructor and Description
      ErrorCode(long errorCode)
      Constructor with the numeric code Id
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj) 
      long getCode()
      The numeric error code Id for this error.
      int hashCode() 
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

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

      • ErrorCode

        public ErrorCode(long errorCode)
        Constructor with the numeric code Id
        Parameters:
        errorCode - the error code id
    • Method Detail

      • getCode

        public long getCode()
        The numeric error code Id for this error.
        Returns:
        the error code id
      • toString

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

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

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object

Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2020. All Rights Reserved.
US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.