Top Fields Constructors Methods
org.apache.derby.impl.drda

pack-priv Class DRDAProtocolException

Additional top-level class in compilation unit: DRDASocketTimeoutException.

extends Exception
Class Inheritance
Known Direct Subclasses
org.apache.derby.impl.drda.DRDASocketTimeoutException
Imports
java.util.Hashtable, org.apache.derby.shared.common.sanity.SanityManager

Field Summary

Modifier and TypeField and Description
private 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

AccessConstructor and Description
pack-priv
DRDAProtocolException(String
The messageid for this message. (needs to be integrated into logging mechanism)
msgid
,
DRDAConnThread
DRDAConnThread that threw this exception
agent
,
int
CODPNT value to pass to send
cpArg
,
int errCdArg, Object[]
Argments for the message in an Object[]
args
)

Create a new Protocol exception

pack-priv
DRDAProtocolException(String msgid, DRDAConnThread agent, int cpArg, int errCdArg)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the server diagnostic error message for this exception
getMessage
()

Overrides java.lang.Throwable.getMessage.

Override getMessage()
protected final boolean
protected static DRDAProtocolException
newAgentError(DRDAConnThread agent, int svrcod, String rdbnam, String srvdgn)

protected static DRDAProtocolException
protected void
write(DDMWriter
The DDMWriter for the agent.
writer
)

write will write the Error information to the buffer.

Field Detail

agentback to summary
private DRDAConnThread agent
codpntArgback to summary
private int codpntArg
correlationIDback to summary
private int correlationID
crrtknback to summary
private byte[] crrtkn
DRDA_AgentErrorback to summary
protected static String DRDA_AgentError
DRDA_Disconnectback to summary
protected static String DRDA_Disconnect
DRDA_InvalidClientback to summary
protected static String DRDA_InvalidClient
DRDA_Proto_CMDCHKRMback to summary
protected static String DRDA_Proto_CMDCHKRM
DRDA_Proto_CMDNSPRMback to summary
protected static String DRDA_Proto_CMDNSPRM
DRDA_Proto_DTAMCHRMback to summary
protected static String DRDA_Proto_DTAMCHRM
DRDA_Proto_MGRLVLRMback to summary
protected static String DRDA_Proto_MGRLVLRM
DRDA_Proto_OBJNSPRMback to summary
protected static String DRDA_Proto_OBJNSPRM
DRDA_Proto_PKGBNARMback to summary
protected static String DRDA_Proto_PKGBNARM
DRDA_Proto_PRCCNVRMback to summary
protected static String DRDA_Proto_PRCCNVRM
DRDA_Proto_PRMNSRMback to summary
protected static String DRDA_Proto_PRMNSRM
DRDA_Proto_RDBNFNRMback to summary
protected static String DRDA_Proto_RDBNFNRM
DRDA_Proto_SYNTAXRMback to summary
protected static String DRDA_Proto_SYNTAXRM
DRDA_Proto_VALNSPRMback to summary
protected static String DRDA_Proto_VALNSPRM
DRDA_Timeoutback to summary
protected static String DRDA_Timeout
errcdback to summary
private int errcd
errorCodePointback to summary
private int errorCodePoint
errorInfoTableback to summary
private static Hashtable<String, DRDAProtocolExceptionInfo> errorInfoTable
exceptionInfoback to summary
private DRDAProtocolExceptionInfo exceptionInfo
messageArgsback to summary
private Object[] messageArgs
messageidback to summary
private String messageid
msgback to summary
private String msg
NO_ASSOC_ERRCDback to summary
protected static final int NO_ASSOC_ERRCD
NO_CODPNT_ARGback to summary
protected static final int NO_CODPNT_ARG
rdbnamback to summary
private String rdbnam
srvdgnback to summary
private String srvdgn
svrcodback to summary
private int svrcod

Constructor Detail

DRDAProtocolExceptionback to summary
pack-priv DRDAProtocolException(String msgid, DRDAConnThread agent, int cpArg, int errCdArg, Object[] args)

Create a new Protocol exception

Parameters
msgid:String

The messageid for this message. (needs to be integrated into logging mechanism)

agent:DRDAConnThread

DRDAConnThread that threw this exception

cpArg:int

CODPNT value to pass to send

args:Object[]

Argments for the message in an Object[]

DRDAProtocolExceptionback to summary
pack-priv DRDAProtocolException(String msgid, DRDAConnThread agent, int cpArg, int errCdArg)

Method Detail

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Override getMessage()

Returns:String

the server diagnostic error message for this exception

isDisconnectExceptionback to summary
protected final boolean isDisconnectException()
newAgentErrorback to summary
protected static DRDAProtocolException newAgentError(DRDAConnThread agent, int svrcod, String rdbnam, String srvdgn)
newDisconnectExceptionback to summary
protected static DRDAProtocolException newDisconnectException(DRDAConnThread agent, Object[] args)
writeback to summary
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:DDMWriter

The DDMWriter for the agent.