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 DRDAConnThreadprivate intprivate intprivate byte[]protected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprivate intprivate intprivate static Hashtable<String, DRDAProtocolExceptionInfo> private DRDAProtocolExceptionInfoprivate Object[]private Stringprivate Stringprotected static final intprotected static final intprivate Stringprivate Stringprivate 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 booleanprotected static DRDAProtocolExceptionnewAgentError(DRDAConnThread agent, int svrcod, String rdbnam, String srvdgn) protected static DRDAProtocolExceptionnewDisconnectException(DRDAConnThread agent, Object[] args) protected voidwrite will write the Error information to the buffer.Methods inherited from class 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:
getMessagein classThrowable- Returns:
- the server diagnostic error message for this exception
-