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