View Javadoc
1 /*
2 * BluesException.java
3 * Created on July 29, 2003
4 *
5 * The Blues Framework - A lightweight application framework
6 * Copyright (C) 2003 Lonnie Pryor
7 * http://blues.lonniepryor.com
8 *
9 * This library is free software; you can redistribute it and/or modify it under the
10 * terms of the GNU Lesser General Public License as published by the Free Software
11 * Foundation; either version 2.1 of the License, or (at your option) any later
12 * version.
13 *
14 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
15 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
16 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License along
19 * with this library; if not, write to:
20 *
21 * The Free Software Foundation, Inc.
22 * 59 Temple Place, Suite 330
23 * Boston, MA 02111-1307 USA
24 *
25 */
26 package com.lonniepryor.blues.util;
27
28 /***
29 * Base exception thrown by the Blues Framework.
30 *
31 * @author Lonnie Pryor
32 * @version $Revision: 1.1 $
33 */
34 public class BluesException extends RuntimeException {
35 /*** The cause of this exception. */
36 private Throwable cause = null;
37
38 /***
39 * Creates a new BluesException object.
40 */
41 public BluesException () {
42 }
43
44 /***
45 * Creates a new BluesException object.
46 *
47 * @param message The error message.
48 */
49 public BluesException (String message) {
50 super(message);
51 }
52
53 /***
54 * Creates a new BluesException object.
55 *
56 * @param message The error message.
57 * @param cause The cause of this exception.
58 */
59 public BluesException (String message, Throwable cause) {
60 super(message);
61 this.cause = cause;
62 }
63
64 /***
65 * Creates a new BluesException object.
66 *
67 * @param cause The cause of this exception.
68 */
69 public BluesException (Throwable cause) {
70 this(cause.getMessage(), cause);
71 }
72
73 /***
74 * Returns the cause of this exception.
75 *
76 * @return The cause of this exception.
77 */
78 public Throwable getCause () {
79 return cause;
80 }
81 }
This page was automatically generated by Maven