Package 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
-
-
Field Summary
Fields Modifier and Type Field Description 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_InvalidClient
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<java.lang.String,DRDAProtocolExceptionInfo>
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
Constructors Constructor Description 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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<java.lang.String,DRDAProtocolExceptionInfo> 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
-
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 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)
-
-
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 classjava.lang.Throwable
- Returns:
- the server diagnostic error message for this exception
-
-