1
2
3
4
5 package net.sf.crispy;
6
7
8 /**
9 * Is thrown, if is a problem with the creation or invocation a service.
10 *
11 * @author Linke
12 *
13 */
14 public class InvocationException extends RuntimeException {
15
16 private static final long serialVersionUID = 19283497239847238L;
17 private ExceptionWrapper exceptionWrapper = null;
18
19 public InvocationException(String pvMsg) {
20 super(pvMsg);
21 }
22
23 public InvocationException(String pvMsg, Throwable pvCause) {
24 super(pvMsg, pvCause);
25 }
26
27 public InvocationException(ExceptionWrapper pvExceptionWrapper) {
28 super(pvExceptionWrapper.getMessage());
29 exceptionWrapper = pvExceptionWrapper;
30 }
31
32 public void printStackTrace() {
33 if (exceptionWrapper == null) {
34 super.printStackTrace();
35 } else {
36 exceptionWrapper.printStackTrace();
37 }
38 }
39
40 }