01: package org.drools.repository;
02:
03: /**
04: * The main exception thrown by classes in this package. May contain an error message and/or another
05: * nested exception.
06: *
07: * @author btruitt
08: */
09: public class RulesRepositoryException extends RuntimeException {
10:
11: /**
12: * version id for serialization purposes
13: */
14: private static final long serialVersionUID = 400L;
15:
16: /**
17: * Default constructor. constructs a RulesRepositoryException object with null as its detail
18: * message
19: */
20: public RulesRepositoryException() {
21: //nothing extra
22: }
23:
24: /**
25: * Constructs a new instance of this class with the specified detail message.
26: *
27: * @param message the message to set for the exception
28: */
29: public RulesRepositoryException(String message) {
30: super (message);
31: }
32:
33: /**
34: * Constructs a new instance of this class with the specified root cause.
35: *
36: * @param rootCause root failure cause
37: */
38: public RulesRepositoryException(Throwable rootCause) {
39: super (rootCause);
40: }
41:
42: /**
43: * Constructs a new instance of this class with the specified detail message and root cause.
44: *
45: * @param message the message to set for the exception
46: * @param rootCause root failure cause
47: */
48: public RulesRepositoryException(String message, Throwable rootCause) {
49: super(message, rootCause);
50: }
51: }
|