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:
Serializable
- Direct Known Subclasses:
DRDASocketTimeoutException
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DRDAConnThread
private int
private int
private byte[]
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
private int
private int
private static Hashtable
<String, DRDAProtocolExceptionInfo> private DRDAProtocolExceptionInfo
private Object[]
private String
private String
protected static final int
protected static final int
private String
private String
private int
-
Constructor Summary
ConstructorsConstructorDescriptionDRDAProtocolException
(String msgid, DRDAConnThread agent, int cpArg, int errCdArg) DRDAProtocolException
(String msgid, DRDAConnThread agent, int cpArg, int errCdArg, Object[] args) Create a new Protocol exception -
Method Summary
Modifier and TypeMethodDescriptionOverride getMessage()protected final boolean
protected static DRDAProtocolException
newAgentError
(DRDAConnThread agent, int svrcod, String rdbnam, String srvdgn) protected static DRDAProtocolException
newDisconnectException
(DRDAConnThread agent, Object[] args) protected void
write will write the Error information to the buffer.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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
-
correlationID
private int correlationID -
crrtkn
private byte[] crrtkn -
codpntArg
private int codpntArg -
exceptionInfo
-
errorCodePoint
private int errorCodePoint -
svrcod
private int svrcod -
errcd
private int errcd -
messageid
-
rdbnam
-
srvdgn
-
messageArgs
-
msg
-
errorInfoTable
-
DRDA_Proto_CMDCHKRM
-
DRDA_Proto_CMDNSPRM
-
DRDA_Proto_DTAMCHRM
-
DRDA_Proto_OBJNSPRM
-
DRDA_Proto_PKGBNARM
-
DRDA_Proto_PRCCNVRM
-
DRDA_Proto_PRMNSRM
-
DRDA_Proto_SYNTAXRM
-
DRDA_Proto_VALNSPRM
-
DRDA_Proto_MGRLVLRM
-
DRDA_Proto_RDBNFNRM
-
DRDA_Disconnect
-
DRDA_AgentError
-
DRDA_Timeout
-
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 exceptioncpArg
- CODPNT value to pass to sendargs
- Argments for the message in an Object[]
-
DRDAProtocolException
DRDAProtocolException(String msgid, DRDAConnThread agent, int cpArg, int errCdArg)
-
-
Method Details
-
newDisconnectException
-
newAgentError
protected static DRDAProtocolException newAgentError(DRDAConnThread agent, int svrcod, String rdbnam, String srvdgn) -
isDisconnectException
protected final boolean isDisconnectException() -
write
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
Override getMessage()- Overrides:
getMessage
in classThrowable
- Returns:
- the server diagnostic error message for this exception
-