01: package org.mockejb.interceptor;
02:
03: /**
04: * Signifies exception in the pointcut, for example
05: * errors in the provided regexp patterns.
06: * Support exception chaining for 1.3 users just in case.
07: *
08: * @author Alexander Ananiev
09: */
10: public class PointcutException extends AspectException {
11:
12: private Throwable cause;
13:
14: /**
15: * Creates a new instance of <code>PointcutException</code>.
16: * Appends the error stack of the cause to the message to remain 1.3 compliant.
17: * @param message error message
18: * @param cause cause of the exception
19: */
20: public PointcutException(String message, Throwable cause) {
21: super (message, cause);
22: }
23:
24: public PointcutException(String message) {
25: super(message);
26: }
27:
28: }
|