Class DRDAProtocolException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    DRDASocketTimeoutException

    class DRDAProtocolException
    extends java.lang.Exception
    • Field Detail

      • correlationID

        private int correlationID
      • crrtkn

        private byte[] crrtkn
      • codpntArg

        private int codpntArg
      • errorCodePoint

        private int errorCodePoint
      • svrcod

        private int svrcod
      • errcd

        private int errcd
      • messageid

        private java.lang.String messageid
      • rdbnam

        private java.lang.String rdbnam
      • srvdgn

        private java.lang.String srvdgn
      • messageArgs

        private java.lang.Object[] messageArgs
      • msg

        private java.lang.String msg
      • DRDA_Proto_CMDCHKRM

        protected static java.lang.String DRDA_Proto_CMDCHKRM
      • DRDA_Proto_CMDNSPRM

        protected static java.lang.String DRDA_Proto_CMDNSPRM
      • DRDA_Proto_DTAMCHRM

        protected static java.lang.String DRDA_Proto_DTAMCHRM
      • DRDA_Proto_OBJNSPRM

        protected static java.lang.String DRDA_Proto_OBJNSPRM
      • DRDA_Proto_PKGBNARM

        protected static java.lang.String DRDA_Proto_PKGBNARM
      • DRDA_Proto_PRCCNVRM

        protected static java.lang.String DRDA_Proto_PRCCNVRM
      • DRDA_Proto_PRMNSRM

        protected static java.lang.String DRDA_Proto_PRMNSRM
      • DRDA_Proto_SYNTAXRM

        protected static java.lang.String DRDA_Proto_SYNTAXRM
      • DRDA_Proto_VALNSPRM

        protected static java.lang.String DRDA_Proto_VALNSPRM
      • DRDA_Proto_MGRLVLRM

        protected static java.lang.String DRDA_Proto_MGRLVLRM
      • DRDA_Proto_RDBNFNRM

        protected static java.lang.String DRDA_Proto_RDBNFNRM
      • DRDA_Disconnect

        protected static java.lang.String DRDA_Disconnect
      • DRDA_AgentError

        protected static java.lang.String DRDA_AgentError
      • DRDA_Timeout

        protected static java.lang.String DRDA_Timeout
      • DRDA_InvalidClient

        protected static java.lang.String DRDA_InvalidClient
    • Constructor Detail

      • DRDAProtocolException

        DRDAProtocolException​(java.lang.String msgid,
                              DRDAConnThread agent,
                              int cpArg,
                              int errCdArg,
                              java.lang.Object[] args)
        Create a new Protocol exception
        Parameters:
        agent - DRDAConnThread that threw this exception
        cpArg - CODPNT value to pass to send
        msgid - The messageid for this message. (needs to be integrated into logging mechanism)
        args - Argments for the message in an Object[]
      • DRDAProtocolException

        DRDAProtocolException​(java.lang.String msgid,
                              DRDAConnThread agent,
                              int cpArg,
                              int errCdArg)
    • Method Detail

      • isDisconnectException

        protected final boolean isDisconnectException()
      • write

        protected void write​(DDMWriter writer)
        write will write the Error information to the buffer. Most errors will write only the codepoint and svrcod Where appropriate the codepoint specific error code and codePoint of origin will be written
        Parameters:
        writer - The DDMWriter for the agent.
      • getMessage

        public java.lang.String getMessage()
        Override getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
        Returns:
        the server diagnostic error message for this exception