1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package no.feide.moria.store;
22
23 /***
24 * Raised whenever a requested ticket is not found in the store.
25 *
26 * @author Bjørn Ola Smievoll <b.o.smievoll@conduct.no>
27 * @version $Revision: 1.5 $
28 */
29 public class NonExistentTicketException extends Exception {
30
31 /***
32 * @see java.lang.Exception#Exception()
33 */
34 public NonExistentTicketException() {
35 super("Ticket does not exist.");
36 }
37
38 /***
39 * Constructor. Creates a new exception with only an exception message.
40 * @param message
41 * The exception message.
42 * @see java.lang.Exception#Exception(java.lang.String)
43 */
44 public NonExistentTicketException(final String message) {
45 super(message);
46 }
47
48 /***
49 * Constructor. Creates a new exception with only a cause.
50 * @param cause
51 * The exception cause.
52 * @see java.lang.Exception#Exception(java.lang.Throwable)
53 */
54 public NonExistentTicketException(final Throwable cause) {
55 super(cause);
56 }
57
58 /***
59 * Constructor. Creates a new exception with both an exception message and a
60 * cause.
61 * @param message
62 * The exception message.
63 * @param cause
64 * The exception cause.
65 * @see java.lang.Exception#Exception(java.lang.String, java.lang.Throwable)
66 */
67 public NonExistentTicketException(final String message, final Throwable cause) {
68 super(message, cause);
69 }
70 }