KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lutris > util > ChainedThrowable


1
2 /*
3  * Enhydra Java Application Server Project
4  *
5  * The contents of this file are subject to the Enhydra Public License
6  * Version 1.1 (the "License"); you may not use this file except in
7  * compliance with the License. You may obtain a copy of the License on
8  * the Enhydra web site ( http://www.enhydra.org/ ).
9  *
10  * Software distributed under the License is distributed on an "AS IS"
11  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
12  * the License for the specific terms governing rights and limitations
13  * under the License.
14  *
15  * The Initial Developer of the Enhydra Application Server is Lutris
16  * Technologies, Inc. The Enhydra Application Server and portions created
17  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
18  * All Rights Reserved.
19  *
20  * Contributor(s):
21  *
22  * $Id: ChainedThrowable.java,v 1.1 2005/07/13 11:09:06 slobodan Exp $
23  */

24
25 package com.lutris.util;
26
27 import java.io.PrintStream JavaDoc;
28 import java.io.PrintWriter JavaDoc;
29
30 /**
31  * Interfaces for all of the Chained* throwables. This defines
32  * the common methods that all implement.
33  */

34 public interface ChainedThrowable {
35     /**
36      * Return the message associated with this exception. If causes
37      * are included, they will be appended to the message.
38      */

39     public String JavaDoc getMessage();
40
41     /**
42      * Get the causing exception associated with this exception.
43      * @return The causing exception or null if no cause is specified.
44      */

45     public Throwable JavaDoc getCause();
46
47     /**
48      * Prints this ChainedException and its backtrace, and the causes
49      * and their stack traces to the standard error stream.
50      */

51     public void printStackTrace();
52
53     /**
54      * Prints this ChainedException and its backtrace, and the causes
55      * and their stack traces to the e specified print stream.
56      */

57     public void printStackTrace(PrintStream JavaDoc s);
58
59     /**
60      * Prints this ChainedException and its backtrace, and the causes
61      * and their stack traces to the e specified print writer.
62      */

63     public void printStackTrace(PrintWriter JavaDoc s);
64 }
65
Popular Tags