KickJava   Java API By Example, From Geeks To Geeks.

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


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  * Exception thrown for errors in accessing bean properties.
19  * @author Fabrizio Giustina
20  * @version $Revision: 934 $ ($Author: fgiust $)
21  */

22 public class ObjectLookupException extends BaseNestableJspTagException
23 {
24
25     /**
26      * D1597A17A6.
27      */

28     private static final long serialVersionUID = 899149338534L;
29
30     /**
31      * Instantiate a new ObjectLookupException.
32      * @param source Class where the exception is generated
33      * @param beanObject javabean
34      * @param beanProperty name of the property not found in javabean
35      * @param cause previous Exception
36      */

37     public ObjectLookupException(Class JavaDoc source, Object JavaDoc beanObject, String JavaDoc beanProperty, Throwable JavaDoc cause)
38     {
39         super(source, Messages.getString("ObjectLookupException.msg" //$NON-NLS-1$
40
, new Object JavaDoc[]{beanProperty, ((beanObject == null) ? "null" : beanObject.getClass().getName())}//$NON-NLS-1$
41
), cause);
42     }
43
44     /**
45      * @return SeverityEnum.WARN
46      * @see org.displaytag.exception.BaseNestableJspTagException#getSeverity()
47      * @see org.displaytag.exception.SeverityEnum
48      */

49     public SeverityEnum getSeverity()
50     {
51         return SeverityEnum.WARN;
52     }
53
54 }
Popular Tags