Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | daniel-mar | 1 | /*============================================================================*/ |
2 | |||
3 | package gdi1sokoban.exceptions; |
||
4 | |||
5 | /*============================================================================*/ |
||
6 | |||
7 | /** |
||
8 | * Exception that occurs in the case of internal errors. If a method throws this |
||
9 | * exception, this normally indicates a bug and there is nothing that the caller |
||
10 | * could do. |
||
11 | * |
||
12 | * @author Steven Arzt, Oren Avni, Guido Roessling |
||
13 | * @version 1.0 |
||
14 | */ |
||
15 | public class ParseException extends Exception { |
||
16 | |||
17 | /* ======================================================================== */ |
||
18 | |||
19 | private static final long serialVersionUID = 0L; |
||
20 | |||
21 | /* ======================================================================== */ |
||
22 | |||
23 | /** |
||
24 | * Creates a new instance of the InternalFailureException class based upon |
||
25 | * the reason for creation (treated as an inner exception). |
||
26 | * |
||
27 | * @param cause |
||
28 | * The cause why the internal error has occurred. Pass the |
||
29 | * original exception or a more detailed internal one here. |
||
30 | */ |
||
31 | public ParseException(final Throwable cause) { |
||
32 | super(cause); |
||
33 | } |
||
34 | |||
35 | /* ======================================================================== */ |
||
36 | |||
37 | /** |
||
38 | * Creates a new instance of the ParseException class based upon a |
||
39 | * textual reason |
||
40 | * |
||
41 | * @param errorMessage |
||
42 | * The reason why this error has occurred |
||
43 | */ |
||
44 | public ParseException(final String errorMessage) { |
||
45 | super(errorMessage); |
||
46 | } |
||
47 | |||
48 | /* ======================================================================== */ |
||
49 | |||
50 | } |