01: package abbot.editor.recorder;
02:
03: public class RecordingFailedException extends RuntimeException {
04: private Throwable reason = null;
05:
06: public RecordingFailedException(String msg) {
07: super (msg);
08: }
09:
10: public RecordingFailedException(Throwable thr) {
11: super (thr.getMessage());
12: reason = thr;
13: }
14:
15: public Throwable getReason() {
16: return reason != null ? reason : this;
17: }
18: }
|