01: /*
02: ItsNat Java Web Application Framework
03: Copyright (C) 2007 Innowhere Software Services S.L., Spanish Company
04: Author: Jose Maria Arranz Santamaria
05:
06: This program is free software: you can redistribute it and/or modify
07: it under the terms of the GNU Affero General Public License as published by
08: the Free Software Foundation, either version 3 of the License, or
09: (at your option) any later version. See the GNU Affero General Public
10: License for more details. See the copy of the GNU Affero General Public License
11: included in this program. If not, see <http://www.gnu.org/licenses/>.
12: */
13:
14: package org.itsnat.core;
15:
16: /**
17: * Is the principal unchecked exception provided by ItsNat.
18: * Every checked exception thrown internally is encapsulated
19: * inside this exception type.
20: *
21: * @author Jose Maria Arranz Santamaria
22: */
23: public class ItsNatException extends RuntimeException {
24:
25: /**
26: * Creates a new instance.
27: *
28: * @param ex the cause of this exception, is submitted to the parent exception.
29: */
30: public ItsNatException(Throwable ex) {
31: super (ex);
32: }
33:
34: /**
35: * Creates a new instance.
36: *
37: * @param message the detail message, is submitted to the parent exception.
38: */
39: public ItsNatException(String message) {
40: super (message);
41: }
42:
43: /**
44: * Creates a new instance.
45: * @param ex the cause of this exception, is submitted to the parent exception.
46: * @param message the detail message, is submitted to the parent exception.
47: */
48: public ItsNatException(String message, Throwable ex) {
49: super(message, ex);
50: }
51: }
|