org.apache.derby.impl.drda
Class DRDAProtocolException

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

 class DRDAProtocolException
extends java.lang.Exception


Field Summary
private  DRDAConnThread agent
           
private  int codpntArg
           
private  int correlationID
           
private  byte[] crrtkn
           
protected static java.lang.String DRDA_AgentError
           
protected static java.lang.String DRDA_Disconnect
           
protected static java.lang.String DRDA_Proto_CMDCHKRM
           
protected static java.lang.String DRDA_Proto_CMDNSPRM
           
protected static java.lang.String DRDA_Proto_DTAMCHRM
           
protected static java.lang.String DRDA_Proto_MGRLVLRM
           
protected static java.lang.String DRDA_Proto_OBJNSPRM
           
protected static java.lang.String DRDA_Proto_PKGBNARM
           
protected static java.lang.String DRDA_Proto_PRCCNVRM
           
protected static java.lang.String DRDA_Proto_PRMNSRM
           
protected static java.lang.String DRDA_Proto_RDBNFNRM
           
protected static java.lang.String DRDA_Proto_SYNTAXRM
           
protected static java.lang.String DRDA_Proto_VALNSPRM
           
protected static java.lang.String DRDA_Timeout
           
private  int errcd
           
private  int errorCodePoint
           
private static java.util.Hashtable errorInfoTable
           
private  DRDAProtocolExceptionInfo exceptionInfo
           
private  java.lang.Object[] messageArgs
           
private  java.lang.String messageid
           
private  java.lang.String msg
           
protected static int NO_ASSOC_ERRCD
           
protected static int NO_CODPNT_ARG
           
private  java.lang.String rdbnam
           
private  java.lang.String srvdgn
           
private  int svrcod
           
 
Constructor Summary
DRDAProtocolException(java.lang.String msgid, DRDAConnThread agent, int cpArg, int errCdArg)
           
DRDAProtocolException(java.lang.String msgid, DRDAConnThread agent, int cpArg, int errCdArg, java.lang.Object[] args)
          Create a new Protocol exception
 
Method Summary
 java.lang.String getMessage()
          Override getMessage()
protected  boolean isDisconnectException()
           
protected static DRDAProtocolException newAgentError(DRDAConnThread agent, int svrcod, java.lang.String rdbnam, java.lang.String srvdgn)
           
protected static DRDAProtocolException newDisconnectException(DRDAConnThread agent, java.lang.Object[] args)
           
protected  void write(DDMWriter writer)
          write will write the Error information to the buffer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_ASSOC_ERRCD

protected static final int NO_ASSOC_ERRCD
See Also:
Constant Field Values

NO_CODPNT_ARG

protected static final int NO_CODPNT_ARG
See Also:
Constant Field Values

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

errorInfoTable

private static java.util.Hashtable errorInfoTable

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

newDisconnectException

protected static DRDAProtocolException newDisconnectException(DRDAConnThread agent,
                                                              java.lang.Object[] args)

newAgentError

protected static DRDAProtocolException newAgentError(DRDAConnThread agent,
                                                     int svrcod,
                                                     java.lang.String rdbnam,
                                                     java.lang.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 java.lang.String getMessage()
Override getMessage()

Overrides:
getMessage in class java.lang.Throwable
Returns:
the server diagnostic error message for this exception

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.