KickJava   Java API By Example, From Geeks To Geeks.

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


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 for problems in loading the (standard or user defined) property file.
19  * @author Fabrizio Giustina
20  * @version $Revision: 720 $ ($Author: fgiust $)
21  */

22 public class TablePropertiesLoadException extends BaseNestableRuntimeException
23 {
24
25     /**
26      * D1597A17A6.
27      */

28     private static final long serialVersionUID = 899149338534L;
29
30     /**
31      * Constructor for TablePropertiesLoadException.
32      * @param source Class where the exception is generated
33      * @param propertiesFileName properties file name
34      * @param cause previous Exception
35      */

36     public TablePropertiesLoadException(Class JavaDoc source, String JavaDoc propertiesFileName, Throwable JavaDoc cause)
37     {
38         super(source, Messages.getString("TablePropertiesLoadException.msg", //$NON-NLS-1$
39
new Object JavaDoc[]{propertiesFileName}), cause);
40     }
41
42     /**
43      * @return SeverityEnum.ERROR
44      * @see org.displaytag.exception.BaseNestableRuntimeException#getSeverity()
45      * @see org.displaytag.exception.SeverityEnum
46      */

47     public SeverityEnum getSeverity()
48     {
49         return SeverityEnum.ERROR;
50     }
51
52 }
Popular Tags