View Javadoc

1   /*
2    * Copyright (c) 2004 UNINETT FAS
3    *
4    * This program is free software; you can redistribute it and/or modify it
5    * under the terms of the GNU General Public License as published by the Free
6    * Software Foundation; either version 2 of the License, or (at your option)
7    * any later version.
8    *
9    * This program is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11   * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12   * more details.
13   *
14   * You should have received a copy of the GNU General Public License along with
15   * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
16   * Place - Suite 330, Boston, MA 02111-1307, USA.
17   *
18   * $Id: NonExistentTicketException.java,v 1.5 2004/12/15 13:10:00 jk Exp $
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  }