Class GramException

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Field Detail

      • resources

        private static java.util.ResourceBundle resources
      • INIT_CALLBACK_HANDLER_FAILED

        public static final int INIT_CALLBACK_HANDLER_FAILED
        See Also:
        Constant Field Values
      • ERROR_JOB_CONTACT_NOT_SET

        public static final int ERROR_JOB_CONTACT_NOT_SET
        See Also:
        Constant Field Values
      • errorCode

        protected int errorCode
    • Constructor Detail

      • GramException

        public GramException()
      • GramException

        public GramException​(int ec)
      • GramException

        public GramException​(java.lang.String msg)
      • GramException

        public GramException​(int ec,
                             java.lang.Throwable ex)
    • Method Detail

      • setErrorCode

        public void setErrorCode​(int ec)
      • getErrorCode

        public int getErrorCode()
      • getMessage

        public static java.lang.String getMessage​(int errorCode)