01: /*
02: * (C) Copyright SimulacraMedia 2003. All rights reserved.
03: *
04: *
05: */
06: package org.openharmonise.rm;
07:
08: /**
09: * Abstract runtime exception class to be extended for specific
10: * runtime exceptions thrown within Harmonise.
11: *
12: * Note: Runtime exception are to be used only in rare cases where the error is caused by
13: * some programming error or some critical fault in the configuration of Harmonise.
14: *
15: * @author Michael Bell
16: * @version $Revision: 1.1 $
17: *
18: */
19: public abstract class HarmoniseRuntimeException extends
20: RuntimeException {
21:
22: /**
23: * Constructs an exception with no detail message and no cause.
24: */
25: public HarmoniseRuntimeException() {
26: super ();
27: }
28:
29: /**
30: * Constructs an exception with the specified detail message and no
31: * cause.
32: *
33: * @param s the detail message
34: */
35: public HarmoniseRuntimeException(String s) {
36: super (s);
37: }
38:
39: /**
40: * Constructs an exception with the specified detail message and
41: * cause.
42: *
43: * @param s the detail message
44: * @param e the cause
45: */
46: public HarmoniseRuntimeException(String s, Throwable e) {
47: super (s, e);
48: }
49:
50: /**
51: * Constructs a new exception with the specified cause and a
52: * detail message taken from the cause.
53: *
54: * @param cause the cause
55: */
56: public HarmoniseRuntimeException(Throwable cause) {
57: super(cause);
58: }
59:
60: }
|