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 input cannot be parsed, typically because it
26 * contains uncorrectable errors.
27 *
28 * @author Christian Siefkes
29 * @version $Revision: 1.4 $, $Date: 2006/10/21 16:03:52 $, $Author: siefkes $
30 */
31 public class ParsingException extends ProcessingException {
32
33 /***
34 * Constructs a new exception with the specified detail message.
35 *
36 * @param message the detail message
37 */
38 public ParsingException(final String message) {
39 super(message);
40 }
41
42 /***
43 * Constructs a new exception with the specified <code>cause</code>. The
44 * detail message is set to <code>(cause==null ? null :
45 * cause.toString())</code> (which typically contains the class and detail
46 * message of <code>cause</code>). This constructor is useful for exceptions
47 * that are little more than wrappers for other throwables.
48 *
49 * @param cause the cause (which is saved for later retrieval by the
50 * {@link Throwable#getCause()} method)
51 */
52 public ParsingException(final Throwable cause) {
53 super(cause);
54 }
55
56 /***
57 * Constructs a new exception with the specified detail message and cause.
58 * Note that the detail message associated with <code>cause</code> is
59 * <em>not</em> automatically incorporated in this exception's detail
60 * message.
61 *
62 * @param message the detail message
63 * @param cause the cause (which is saved for later retrieval by the
64 * {@link Throwable#getCause()} method)
65 */
66 public ParsingException(final String message, final Throwable cause) {
67 super(message, cause);
68 }
69
70 }