Source code: nectar/InternalException.java
1 /*
2 Copyright (C) 2003 Kai Schutte
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18 * InternalException.java -- System exception, like SQL exceptions for example.
19 *
20 * Created on March 13, 2003, 4:02 PM
21 */
22
23 package nectar;
24
25 /** InternalException's are caused by the internal works of the Servlet, for example the DataException (a class that inherits from InternalException) to notify SQL errors. They are eventually handled and logged a little differently in the Action classes.
26 *
27 * @author Kai Schutte skander@skander.com
28 */
29 public class InternalException extends NectarException {
30
31 /**
32 * Creates a new instance of <code>InternalException</code> without detail message.
33 */
34 public InternalException() {
35 }
36
37
38 /**
39 * Constructs an instance of <code>InternalException</code> with the specified detail message.
40 * @param msg the detail message.
41 */
42 public InternalException(String msg) {
43 super(msg);
44 }
45
46
47 /** Constructs an instance of <code>InternalException</code> with the specified detail message and the root cause Throwable.
48 * @param message The message describing the cause of this Exception
49 * @param cause The root cause Throwable that triggered this Exception.
50 */
51 public InternalException(String message, Throwable cause) {
52 super(message, cause);
53 }
54 }