KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > exceptions > TestException


1 // $Id: TestException.java 3567 2003-06-30 22:32:03Z shuber $
2
//
3
// ____.
4
// __/\ ______| |__/\. _______
5
// __ .____| | \ | +----+ \
6
// _______| /--| | | - \ _ | : - \_________
7
// \\______: :---| : : | : | \________>
8
// |__\---\_____________:______: :____|____:_____\
9
// /_____|
10
//
11
// . . . i n j a h i a w e t r u s t . . .
12
//
13

14
15
16 package org.jahia.exceptions;
17
18
19 /**
20  * @author Fulco Houkes
21  *
22  * @version 1.0
23  */

24 public class TestException extends Exception JavaDoc
25 {
26     /** Reference to the exception cause */
27     private JahiaException mExceptionCause = null;
28     private StringBuffer JavaDoc mStringBuffer = null;
29
30
31     //-------------------------------------------------------------------------
32
/**
33      * DefaultConstructor
34      */

35     public TestException ()
36     {
37         mStringBuffer = new StringBuffer JavaDoc ();
38     }
39
40     //-------------------------------------------------------------------------
41
/**
42      * DefaultConstructor
43      */

44     public TestException (StringBuffer JavaDoc buffer, JahiaException ex)
45     {
46         mStringBuffer = buffer;
47         mExceptionCause = ex;
48     }
49
50     //-------------------------------------------------------------------------
51
/**
52      * DefaultConstructor
53      */

54     public TestException (StringBuffer JavaDoc buffer)
55     {
56         mStringBuffer = buffer;
57     }
58
59
60     //-------------------------------------------------------------------------
61
/**
62      * Return the exception cause.
63      *
64      * @return
65      * Return the reference on the exception cause.
66      */

67     public final JahiaException getExceptionCause () {
68         return mExceptionCause;
69     }
70
71
72     //-------------------------------------------------------------------------
73
/**
74      * Return the string buffer containing the operations stack.
75      *
76      * @return
77      * Return the reference on the internal string buffer.
78      */

79     public final StringBuffer JavaDoc getStringBuffer () {
80         return mStringBuffer;
81     }
82
83
84 }
85
Popular Tags