01: package com.salmonllc.remote;
02:
03: /**
04: * Created by IntelliJ IDEA.
05: * User: Fred Cahill
06: * Date: Sep 14, 2004
07: * Time: 11:04:10 AM
08: * To change this template use Options | File Templates.
09: */
10: public class RemoteReflectionException extends Exception {
11:
12: private Throwable _rootCause;
13:
14: /**
15: * Constructs an Exception with no specified detail message.
16: */
17: public RemoteReflectionException() {
18: super ();
19: }
20:
21: /**
22: * Constructs an Exception with the specified detail message.
23: * @param s the detail message.
24: */
25: public RemoteReflectionException(String s) {
26: super (s);
27: }
28:
29: /**
30: * Constructs an Exception with the specified detail message.
31: * @param s the detail message.
32: */
33: public RemoteReflectionException(String s, Throwable root) {
34: super (s);
35: _rootCause = root;
36: }
37:
38: /**
39: * @return The root cause of the exception if there is one or null if not
40: */
41:
42: public Throwable getRootCause() {
43: return _rootCause;
44: }
45:
46: }
|