org.apache.derby.impl.drda
Class DRDAProtocolException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.derby.impl.drda.DRDAProtocolException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- DRDASocketTimeoutException
class DRDAProtocolException
- extends java.lang.Exception
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 |
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
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 exceptioncpArg
- CODPNT value to pass to sendmsgid
- 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)
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
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.