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 /**
15 * Exception thrown by column decorators. If a decorator need to throw a checked exception this should be nested in a
16 * DecoratorException.
17 * @author Fabrizio Giustina
18 * @version $Revision: 1081 $ ($Author: fgiust $)
19 */
20 public class DecoratorException extends BaseNestableJspTagException
21 {
22
23 /**
24 * D1597A17A6.
25 */
26 private static final long serialVersionUID = 899149338534L;
27
28 /**
29 * Constructor for DecoratorException.
30 * @param source Class where the exception is generated
31 * @param message message
32 */
33 public DecoratorException(Class source, String message)
34 {
35 super(source, message);
36 }
37
38 /**
39 * Constructor for DecoratorException.
40 * @param source Class where the exception is generated
41 * @param message message
42 * @param cause previous exception
43 */
44 public DecoratorException(Class source, String message, Throwable cause)
45 {
46 super(source, message, cause);
47 }
48
49 /**
50 * @see org.displaytag.exception.BaseNestableJspTagException#getSeverity()
51 */
52 public SeverityEnum getSeverity()
53 {
54 return SeverityEnum.ERROR;
55 }
56
57 }