01: /*
02: * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
03: * Copyright (C) 2005 - Javolution (http://javolution.org/)
04: * All rights reserved.
05: *
06: * Permission to use, copy, modify, and distribute this software is
07: * freely granted, provided that this notice is preserved.
08: */
09: package javolution;
10:
11: /**
12: * Signals that a serious problem (bug ?!) has been detected
13: * within the library.
14: *
15: * @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a>
16: * @version 1.0, September 14, 2004
17: */
18: public final class JavolutionError extends Error {
19:
20: /**
21: * Creates an error message with the specified message
22: * and cause.
23: *
24: * @param message the detail message.
25: */
26: public JavolutionError(String message) {
27: super (message);
28: }
29:
30: /**
31: * Creates an error message with the specified message
32: * and cause. The cause stack trace is printed to the
33: * current error stream (System.err).
34: *
35: * @param message the detailed message.
36: * @param cause the cause of this error.
37: */
38: public JavolutionError(String message, Throwable cause) {
39: super (message);
40: cause.printStackTrace();
41: }
42:
43: /**
44: * Creates an error message with the specified cause
45: * The cause stack trace is printed to the current error
46: * stream (System.err).
47: *
48: * @param cause the cause of this error.
49: */
50: public JavolutionError(Throwable cause) {
51: cause.printStackTrace();
52: }
53:
54: private static final long serialVersionUID = 1L;
55: }
|