KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > displaytag > exception > RuntimeLookupException


1 /**
2  * Licensed under the Artistic License; you may not use this file
3  * except in compliance with the License.
4  * You may obtain a copy of the License at
5  *
6  * http://displaytag.sourceforge.net/license.html
7  *
8  * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
9  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
10  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11  */

12 package org.displaytag.exception;
13
14 import org.displaytag.Messages;
15
16
17 /**
18  * runtime exception thrown during sorting when a checked exception can't be used.
19  * @author Fabrizio Giustina
20  * @version $Revision: 720 $ ($Author: fgiust $)
21  */

22 public class RuntimeLookupException extends RuntimeException JavaDoc
23 {
24
25     /**
26      * D1597A17A6.
27      */

28     private static final long serialVersionUID = 899149338534L;
29
30     /**
31      * @param sourceClass class where the exception is thrown
32      * @param property object property who caused the exception
33      * @param cause previous (checked) exception
34      */

35     public RuntimeLookupException(Class JavaDoc sourceClass, String JavaDoc property, BaseNestableJspTagException cause)
36     {
37         super(Messages.getString("RuntimeLookupException.msg", //$NON-NLS-1$
38
new Object JavaDoc[]{property, cause.getMessage()}));
39     }
40
41 }
Popular Tags