KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > impl > drda > DRDAProtocolExceptionInfo


1 /*
2
3    Derby - Class org.apache.derby.impl.drda.DRDAProtocolExceptionInfo
4
5    Licensed to the Apache Software Foundation (ASF) under one or more
6    contributor license agreements. See the NOTICE file distributed with
7    this work for additional information regarding copyright ownership.
8    The ASF licenses this file to You under the Apache License, Version 2.0
9    (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,
58                     boolean sendsCodpntArg)
59     {
60     this.errorCodePoint = errorCodePoint;
61     this.svrcod = svrcod;
62     this.errCdCodePoint = errCdCodePoint;
63     this.sendsCodpntArg = sendsCodpntArg;
64     }
65     
66     
67 }
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Popular Tags