KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javolution > JavolutionError


1 /*
2  * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
3  * Copyright (C) 2005 - Javolution (http://javolution.org/)
4  * All rights reserved.
5  *
6  * Permission to use, copy, modify, and distribute this software is
7  * freely granted, provided that this notice is preserved.
8  */

9 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 JavaDoc {
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 JavaDoc 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 JavaDoc message, Throwable JavaDoc 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 JavaDoc cause) {
51         cause.printStackTrace();
52     }
53
54     private static final long serialVersionUID = 1L;
55 }
Popular Tags