01: /*
02:
03: Derby - Class org.apache.derby.impl.drda.DRDAProtocolExceptionInfo
04:
05: Licensed to the Apache Software Foundation (ASF) under one or more
06: contributor license agreements. See the NOTICE file distributed with
07: this work for additional information regarding copyright ownership.
08: The ASF licenses this file to You under the Apache License, Version 2.0
09: (the "License"); you may not use this file except in compliance with
10: the License. You may obtain a copy of the License at
11:
12: http://www.apache.org/licenses/LICENSE-2.0
13:
14: Unless required by applicable law or agreed to in writing, software
15: distributed under the License is distributed on an "AS IS" BASIS,
16: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: See the License for the specific language governing permissions and
18: limitations under the License.
19:
20: */
21:
22: package org.apache.derby.impl.drda;
23:
24: class DRDAProtocolExceptionInfo {
25:
26: /*
27: Holds static information about the protocol error
28: to put in the Hash Table
29: */
30:
31: /**
32: * errorCodePoint specifies the code point of the error reply message, (e.g.
33: * CodePoint.SYNTAXRM) whereas errCdCodePoint specifies the code point of an
34: * extra required field in that reply message. Most error reply messages
35: * have one or two required fields that are quite common, like SVRCOD
36: * (severity code) or RDBNAM (database name). Some error reply messages
37: * additionally have required fields that are specific to them.
38: * errCdCodePoint is used to specify these. For instance, SYNTAXRM has a
39: * required field called SYNERRCD, and PRCCNVRM has a required field called
40: * PRCCNVCD.
41: */
42: protected int errorCodePoint;
43:
44: // Severity Code
45: protected int svrcod;
46:
47: /**
48: * The CodePoint describing the error condition for the errorCodePoint.
49: * (e.g. CodePoint.SYNERRCD, when errorCodePoint is CodePoint.SYNTAXRM)
50: */
51: protected int errCdCodePoint;
52:
53: // Sends an originating Codepoint
54: protected boolean sendsCodpntArg;
55:
56: DRDAProtocolExceptionInfo(int errorCodePoint, int svrcod,
57: int errCdCodePoint, boolean sendsCodpntArg) {
58: this.errorCodePoint = errorCodePoint;
59: this.svrcod = svrcod;
60: this.errCdCodePoint = errCdCodePoint;
61: this.sendsCodpntArg = sendsCodpntArg;
62: }
63:
64: }
|