KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > template > TemplateException


1 package spoon.template;
2
3 /**
4  * This runtime exception can be throws when something wrong occurs in template
5  * operations such as loading, subtitution, and matching.
6  *
7  * @see spoon.template.Substitution
8  * @see spoon.template.TemplateMatcher
9  */

10 public class TemplateException extends RuntimeException JavaDoc {
11
12     private static final long serialVersionUID = 1L;
13
14     /**
15      * Empty exception.
16      */

17     public TemplateException() {
18         super();
19     }
20
21     /**
22      * Exception with a message.
23      */

24     public TemplateException(String JavaDoc message) {
25         super(message);
26     }
27
28     /**
29      * Exception with a message and a cause.
30      */

31     public TemplateException(String JavaDoc message, Throwable JavaDoc cause) {
32         super(message, cause);
33     }
34
35     /**
36      * Exception with a cause.
37      */

38     public TemplateException(Throwable JavaDoc cause) {
39         super(cause);
40     }
41
42 }
43
Popular Tags