1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package de.fu_berlin.ties;
23
24 /***
25 * Exception thrown when an error occurs during processing.
26 *
27 * @author Christian Siefkes
28 * @version $Revision: 1.4 $, $Date: 2006/10/21 16:03:52 $, $Author: siefkes $
29 */
30 public class ProcessingException extends Exception {
31
32 /***
33 * Constructs a new exception with the specified detail message.
34 *
35 * @param message the detail message
36 */
37 public ProcessingException(final String message) {
38 super(message);
39 }
40
41 /***
42 * Constructs a new exception with the specified <code>cause</code>. The
43 * detail message is set to <code>(cause==null ? null :
44 * cause.toString())</code> (which typically contains the class and detail
45 * message of <code>cause</code>). This constructor is useful for exceptions
46 * that are little more than wrappers for other throwables.
47 *
48 * @param cause the cause (which is saved for later retrieval by the
49 * {@link Throwable#getCause()} method)
50 */
51 public ProcessingException(final Throwable cause) {
52 super(cause);
53 }
54
55 /***
56 * Constructs a new exception with the specified detail message and cause.
57 * Note that the detail message associated with <code>cause</code> is
58 * <em>not</em> automatically incorporated in this exception's detail
59 * message.
60 *
61 * @param message the detail message
62 * @param cause the cause (which is saved for later retrieval by the
63 * {@link Throwable#getCause()} method)
64 */
65 public ProcessingException(final String message, final Throwable cause) {
66 super(message, cause);
67 }
68
69 }