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 * 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 }