Class GramException

All Implemented Interfaces:
Serializable, GRAMProtocolErrorConstants
Direct Known Subclasses:
WaitingForCommitException

public class GramException extends ChainedException implements GRAMProtocolErrorConstants
This class defeines the Exceptions which are thrown by the various Gram and GramJob methods. This class contains many definitions for error codes of the form ERROR_* in addition to SUCCESS. The error codes are a superset of those defined for the GRAM C client. Additional error codes are added for errors that can occur in the Java code.
See Also:
  • Field Details

    • SUCCESS

      public static final int SUCCESS
      See Also:
    • INIT_CALLBACK_HANDLER_FAILED

      public static final int INIT_CALLBACK_HANDLER_FAILED
      See Also:
    • ERROR_JOB_CONTACT_NOT_SET

      public static final int ERROR_JOB_CONTACT_NOT_SET
      See Also:
    • CUSTOM_ERROR

      public static final int CUSTOM_ERROR
      See Also:
    • errorCode

      protected int errorCode
  • Constructor Details

    • GramException

      public GramException()
    • GramException

      public GramException(int ec)
    • GramException

      public GramException(String msg)
    • GramException

      public GramException(int ec, Throwable ex)
  • Method Details

    • setErrorCode

      public void setErrorCode(int ec)
    • getErrorCode

      public int getErrorCode()
    • getMessage

      public static String getMessage(int errorCode)