01: package org.drools;
02:
03: /*
04: * Copyright 2005 JBoss Inc
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: /**
20: * Base RuntimeException<code>drools Logic Engine</code> exception.
21: *
22: * @author <a href="mailto:mark.proctor@jboss.com">Mark Proctor</a>
23: * @author <a href="mailto:bob@werken.com">Bob McWhirter</a>
24: */
25: public class CheckedDroolsException extends Exception {
26: /**
27: *
28: */
29: private static final long serialVersionUID = 400L;
30:
31: /**
32: * @see java.lang.Exception#Exception()
33: */
34: public CheckedDroolsException() {
35: super ();
36: }
37:
38: /**
39: * @see java.lang.Exception#Exception(String message)
40: */
41: public CheckedDroolsException(final String message) {
42: super (message);
43: }
44:
45: /**
46: * @see java.lang.Exception#Exception(String message, Throwable cause)
47: */
48: public CheckedDroolsException(final String message,
49: final Throwable cause) {
50: super (message);
51: }
52:
53: /**
54: * @see java.lang.Exception#Exception(Throwable cause)
55: */
56: public CheckedDroolsException(final Throwable cause) {
57: super (cause);
58: }
59:
60: /**
61: * Get the root cause, if any.
62: *
63: * @deprecated Use Throwable.getCause()
64: * @return The root cause of this exception, as a <code>Throwable</code>,
65: * if this exception has a root cause, else <code>null</code>.
66: */
67: public Throwable getRootCause() {
68: return super.getCause();
69: }
70: }
|