Class DRDAProtocolException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.derby.impl.drda.DRDAProtocolException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DRDASocketTimeoutException

class DRDAProtocolException extends Exception
  • Field Details

    • NO_ASSOC_ERRCD

      protected static final int NO_ASSOC_ERRCD
      See Also:
    • NO_CODPNT_ARG

      protected static final int NO_CODPNT_ARG
      See Also:
    • agent

      private DRDAConnThread agent
    • correlationID

      private int correlationID
    • crrtkn

      private byte[] crrtkn
    • codpntArg

      private int codpntArg
    • exceptionInfo

      private DRDAProtocolExceptionInfo exceptionInfo
    • errorCodePoint

      private int errorCodePoint
    • svrcod

      private int svrcod
    • errcd

      private int errcd
    • messageid

      private String messageid
    • rdbnam

      private String rdbnam
    • srvdgn

      private String srvdgn
    • messageArgs

      private Object[] messageArgs
    • msg

      private String msg
    • errorInfoTable

      private static Hashtable<String,DRDAProtocolExceptionInfo> errorInfoTable
    • DRDA_Proto_CMDCHKRM

      protected static String DRDA_Proto_CMDCHKRM
    • DRDA_Proto_CMDNSPRM

      protected static String DRDA_Proto_CMDNSPRM
    • DRDA_Proto_DTAMCHRM

      protected static String DRDA_Proto_DTAMCHRM
    • DRDA_Proto_OBJNSPRM

      protected static String DRDA_Proto_OBJNSPRM
    • DRDA_Proto_PKGBNARM

      protected static String DRDA_Proto_PKGBNARM
    • DRDA_Proto_PRCCNVRM

      protected static String DRDA_Proto_PRCCNVRM
    • DRDA_Proto_PRMNSRM

      protected static String DRDA_Proto_PRMNSRM
    • DRDA_Proto_SYNTAXRM

      protected static String DRDA_Proto_SYNTAXRM
    • DRDA_Proto_VALNSPRM

      protected static String DRDA_Proto_VALNSPRM
    • DRDA_Proto_MGRLVLRM

      protected static String DRDA_Proto_MGRLVLRM
    • DRDA_Proto_RDBNFNRM

      protected static String DRDA_Proto_RDBNFNRM
    • DRDA_Disconnect

      protected static String DRDA_Disconnect
    • DRDA_AgentError

      protected static String DRDA_AgentError
    • DRDA_Timeout

      protected static String DRDA_Timeout
    • DRDA_InvalidClient

      protected static String DRDA_InvalidClient
  • Constructor Details

    • DRDAProtocolException

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

      DRDAProtocolException(String msgid, DRDAConnThread agent, int cpArg, int errCdArg)
  • Method Details

    • newDisconnectException

      protected static DRDAProtocolException newDisconnectException(DRDAConnThread agent, Object[] args)
    • newAgentError

      protected static DRDAProtocolException newAgentError(DRDAConnThread agent, int svrcod, String rdbnam, String srvdgn)
    • 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 String getMessage()
      Override getMessage()
      Overrides:
      getMessage in class Throwable
      Returns:
      the server diagnostic error message for this exception