KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > webdocwf > dods > access > AccessEvalException


1 /**
2  * Title: WebDocWf AccessEvalException<p>
3  * Description: AccessEvalException is thrown if an error accurs during evaluation of rights<p>
4  * Copyright: Copyright (c) Together Teamlösungen EDV-Dienstleistungen GmbH. under LGPL<p>
5  * Company: Together Teamlösungen EDV-Dienstleistungen GmbH.<p>
6  * @author Alfred Madl (a.madl@together.at)
7  * @version 1.0
8  */

9 package org.webdocwf.dods.access;
10
11 import java.io.PrintStream JavaDoc;
12 import java.io.PrintWriter JavaDoc;
13
14 /**
15  * Exception used as a base for creating an exception that has a chain of
16  * exceptions that lead to the derived exception. Very useful for interfaces
17  * where the implementation exception is not known.
18  */

19 public class AccessEvalException extends AccessException {
20
21     /**
22      * Construct an exception without a specified cause.
23      *
24      * @param msg The message associated with the exception.
25      */

26     public AccessEvalException(String JavaDoc msg) {
27         super(msg);
28     }
29
30     /**
31      * Construct an exception with an associated causing exception.
32      *
33      * @param msg The message associated with the exception.
34      * @param cause The error or exception that cause this
35      * exception.
36      */

37     public AccessEvalException(String JavaDoc msg,
38             Throwable JavaDoc cause) {
39         super(msg, cause);
40     }
41
42     /**
43      * Construct an exception from a causing exception.
44      *
45      * @param cause The error or exception that cause this
46      * exception. The message will be take be this object's
47      * messasge.
48      */

49     public AccessEvalException(Throwable JavaDoc cause) {
50         super(cause.getMessage(), cause);
51     }
52
53     /**
54      * Construct an exception with a cause and detail data.
55      *
56      * @param cause The error or exception that cause this
57      * exception. The message will be take be this object's
58      * messasge.
59      * @param inUsr The user for the access right check
60      * @param inOperation The desired operation
61      * @param inObj The accessed object
62      * @param inClassName The accessed class
63      * @param inAttrName The accessed attribute
64      * @param inValue The accessed value
65      * @param inOldValue The new value in set-operations
66      * @param inDatatype The datatype of the value
67      * @param inCmp_op The comparison operator for queries
68      */

69     public AccessEvalException(Throwable JavaDoc cause, User inUsr, String JavaDoc inOperation, SecureDO inObj, String JavaDoc inClassName, String JavaDoc inAttrName, String JavaDoc inValue, String JavaDoc inOldValue, String JavaDoc inDatatype, String JavaDoc inCmp_op) {
70         super(cause.getMessage(), cause, inUsr, inOperation, inObj, inClassName,
71                 inAttrName, inValue, inOldValue, inDatatype, inCmp_op);
72     }
73
74     /**
75      * Construct an exception with a message, a cause and detail data.
76      *
77      * @param msg The message associated with the exception.
78      * @param cause The error or exception that cause this
79      * exception. The message will be take be this object's
80      * messasge.
81      * @param inUsr The user for the access right check
82      * @param inOperation The desired operation
83      * @param inObj The accessed object
84      * @param inClassName The accessed class
85      * @param inAttrName The accessed attribute
86      * @param inValue The accessed value
87      * @param inOldValue The new value in set-operations
88      * @param inDatatype The datatype of the value
89      * @param inCmp_op The comparison operator for queries
90      */

91     public AccessEvalException(String JavaDoc msg, Throwable JavaDoc cause, User inUsr, String JavaDoc inOperation, SecureDO inObj, String JavaDoc inClassName, String JavaDoc inAttrName, String JavaDoc inValue, String JavaDoc inOldValue, String JavaDoc inDatatype, String JavaDoc inCmp_op) {
92         super(msg, cause, inUsr, inOperation, inObj, inClassName, inAttrName,
93                 inValue, inOldValue, inDatatype, inCmp_op);
94     }
95
96     /**
97      * Construct an exception with a message and detail data.
98      *
99      * @param msg The message associated with the exception.
100      * @param inUsr The user for the access right check
101      * @param inOperation The desired operation
102      * @param inObj The accessed object
103      * @param inClassName The accessed class
104      * @param inAttrName The accessed attribute
105      * @param inValue The accessed value
106      * @param inOldValue The new value in set-operations
107      * @param inDatatype The datatype of the value
108      * @param inCmp_op The comparison operator for queries
109      */

110     public AccessEvalException(String JavaDoc msg, User inUsr, String JavaDoc inOperation, SecureDO inObj, String JavaDoc inClassName, String JavaDoc inAttrName, String JavaDoc inValue, String JavaDoc inOldValue, String JavaDoc inDatatype, String JavaDoc inCmp_op) {
111         super(msg, inUsr, inOperation, inObj, inClassName, inAttrName, inValue,
112                 inOldValue, inDatatype, inCmp_op);
113     }
114
115     /**
116      * Prints this ChainedException and its backtrace, and the causes
117      * and their stack traces to the standard error stream.
118      */

119     public void printStackTrace() {
120         super.printStackTrace();
121     }
122
123     /**
124      * Prints this ChainedException and its backtrace, and the causes
125      * and their stack traces to the e specified print stream.
126      */

127     public void printStackTrace(PrintStream JavaDoc s) {
128         super.printStackTrace(s);
129     }
130
131     /**
132      * Prints this ChainedException and its backtrace, and the causes
133      * and their stack traces to the e specified print writer.
134      */

135     public void printStackTrace(PrintWriter JavaDoc s) {
136         super.printStackTrace(s);
137     }
138 }
139
Popular Tags