1 /*
2 * This file is part of Pease Plate Template Engine.
3 *
4 * Pease Plate Template Engine is free software: you can redistribute
5 * it and/or modify it under the terms of the GNU Lesser General
6 * Public License as published by the Free Software Foundation,
7 * either version 3 of the License, or any later version.
8 *
9 * Pease Plate Template Engine is distributed in the hope that it
10 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
11 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 * See the GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with Pease Plate Template Engine. If not, see
16 * <http://www.gnu.org/licenses/>.
17 *
18 * Copyright (c) 2008 Manfred HANTSCHEL
19 */
20 package org.peaseplate;
21
22 /**
23 * The base exception for the Pease Plate engine.
24 * Usually it's enough to catch this exception because any other
25 * (more detailed) exception extends this class.
26 *
27 * @author Manfred HANTSCHEL
28 */
29 public class TemplateException extends Exception {
30
31 private static final long serialVersionUID = 1L;
32
33 /**
34 * Creates a new instance.
35 * @param message the message
36 */
37 public TemplateException(String message) {
38 super(message);
39 }
40
41 /**
42 * Creates a new instance with the specified message.
43 * @param message the messages
44 * @param cause the cause of the exception
45 */
46 public TemplateException(String message, Throwable cause) {
47 super(message, cause);
48 }
49
50 }