KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > storage > StorageFactoryException


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.storage;
11
12 /**
13  * This exception gets thrown when an error occurred during instantiation of the StorageFactory.
14  *
15  * @since MMBase-1.7
16  * @author Pierre van Rooden
17  * @version $Id: StorageFactoryException.java,v 1.3 2005/10/02 16:16:42 michiel Exp $
18  */

19 public class StorageFactoryException extends StorageException {
20
21     /**
22      * Constructs a <code>StorageFactoryException</code> with <code>null</code> as its
23      * message.
24      */

25     public StorageFactoryException() {
26         super();
27     }
28
29     /**
30      * Constructs a <code>StorageFactoryException</code> with the specified detail
31      * message.
32      *
33      * @param message a description of the error
34      */

35     public StorageFactoryException(String JavaDoc message) {
36         super(message);
37     }
38
39     /**
40      * Constructs a <code>StorageFactoryException</code> with the detail
41      * message of the original exception.
42      * The cause can be retrieved with getCause().
43      *
44      * @param cause the cause of the error
45      */

46     public StorageFactoryException(Throwable JavaDoc cause) {
47         super(cause.getMessage(), cause);
48     }
49
50     /**
51      * Constructs a <code>StorageFactoryException</code> with the detail
52      * message of the original exception.
53      * The cause can be retrieved with getCause().
54      *
55      * @param message a description of the error
56      * @param cause the cause of the error
57      */

58     public StorageFactoryException(String JavaDoc message, Throwable JavaDoc cause) {
59         super(message, cause);
60     }
61
62 }
63
Popular Tags