KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xdoclet > template > TemplateException


1 /*
2  * Copyright (c) 2001, 2002 The XDoclet team
3  * All rights reserved.
4  */

5 package xdoclet.template;
6
7 /**
8  * @author Ara Abrahamian (ara_e@email.com)
9  * @created Oct 14, 2001
10  * @version $Revision: 1.5 $
11  */

12 public class TemplateException extends Exception JavaDoc
13 {
14     private Exception JavaDoc nestedException = null;
15
16     /**
17      * Describe what the TemplateException constructor does
18      *
19      * @param msg Describe what the parameter does
20      */

21     public TemplateException(String JavaDoc msg)
22     {
23         this(null, msg);
24     }
25
26     /**
27      * Describe what the TemplateException constructor does
28      *
29      * @param nestedException Describe what the parameter does
30      * @param msg Describe what the parameter does
31      */

32     public TemplateException(Exception JavaDoc nestedException, String JavaDoc msg)
33     {
34         super(msg);
35         this.nestedException = nestedException;
36     }
37
38     /**
39      * Gets the NestedException attribute of the TemplateException object
40      *
41      * @return The NestedException value
42      */

43     public Exception JavaDoc getNestedException()
44     {
45         return nestedException;
46     }
47 }
48
Popular Tags