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: MoriaStoreException.java,v 1.5 2004/12/15 13:10:00 jk Exp $
19   */
20  
21  package no.feide.moria.store;
22  
23  /***
24   * Used to signal errors from the store.
25   *
26   * @author Bjørn Ola Smievoll <b.o.smievoll@conduct.no>
27   * @version $Revision: 1.5 $
28   */
29  public class MoriaStoreException extends Exception {
30  
31      /***
32       * Constructor. Creates a new exception with only an exception message.
33       * @param message
34       *            The exception message.
35       * @see java.lang.Exception#Exception(java.lang.String)
36       */
37      public MoriaStoreException(final String message) {
38          super(message);
39      }
40  
41      /***
42       * Constructor. Creates a new exception with only a cause.
43       * @param cause
44       *            The exception cause.
45       * @see java.lang.Exception#Exception(java.lang.Throwable)
46       */
47      public MoriaStoreException(final Throwable cause) {
48          super(cause);
49      }
50  
51      /***
52       * Constructor. Creates a new exception with both an exception message and a
53       * cause.
54       * @param message
55       *            The exception message.
56       * @param cause
57       *            The exception cause.
58       * @see java.lang.Exception#Exception(java.lang.String, java.lang.Throwable)
59       */
60      public MoriaStoreException(final String message, final Throwable cause) {
61          super(message, cause);
62      }
63  }