KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > module > admininterface > InvalidDialogPageHandlerException


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2006 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.module.admininterface;
14
15 /**
16  * Runtime Exception thrown when a dialog handler can't be instantiated.
17  * @author Fabrizio Giustina
18  * @version $Revision: 6341 $ ($Author: philipp $)
19  */

20 public class InvalidDialogPageHandlerException extends RuntimeException JavaDoc {
21
22     /**
23      * Stable serialVersionUID.
24      */

25     private static final long serialVersionUID = 222L;
26
27     /**
28      * Instantiates a new exception. Use this constructor when configuration is missing.
29      * @param pageName missing dialog name
30      */

31     public InvalidDialogPageHandlerException(String JavaDoc pageName) {
32         super("No dialogpage handler for [" + pageName + "] found"); //$NON-NLS-1$ //$NON-NLS-2$
33
}
34
35     /**
36      * Instantiates a new exception. Use this constructor when the dialog handler can't be instantiated due to a
37      * previous exception.
38      * @param pageName dialog name
39      * @param cause previous exception
40      */

41     public InvalidDialogPageHandlerException(String JavaDoc pageName, Throwable JavaDoc cause) {
42         super("Unable to instantiate a dialogpage handler for [" //$NON-NLS-1$
43
+ pageName
44             + "] due to a " //$NON-NLS-1$
45
+ cause.getClass().getName()
46             + " exception", cause); //$NON-NLS-1$
47
}
48
49 }
50
Popular Tags