KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > invicta > template > InvictaTemplateException


1 package net.sf.invicta.template;
2
3 import net.sf.invicta.InvictaException;
4
5 /**
6  *
7  */

8 public class InvictaTemplateException extends InvictaException {
9     protected String JavaDoc formatAttempt;
10     protected Throwable JavaDoc cause;
11
12     /**
13      * @param message
14      */

15     public InvictaTemplateException(String JavaDoc message) {
16         super(message);
17     }
18     
19     /**
20      *
21      * @param message
22      * @param formatAttempt
23      */

24     public InvictaTemplateException(String JavaDoc message, String JavaDoc formatAttempt) {
25         super(message);
26         this.formatAttempt = formatAttempt;
27     }
28
29     /**
30      *
31      * @param message
32      * @param cause
33      * @param formatAttempt
34      */

35     public InvictaTemplateException(String JavaDoc message, Throwable JavaDoc cause, String JavaDoc formatAttempt) {
36         super(message);
37         this.formatAttempt = formatAttempt;
38         this.cause = cause;
39     }
40
41     /**
42      *
43      * @return
44      */

45     public String JavaDoc getFormatAttempt() {
46         return formatAttempt;
47     }
48
49     /**
50      *
51      * @return
52      */

53     public Throwable JavaDoc getCause() {
54         return this.cause;
55     }
56
57 }
58
Popular Tags