01: /*
02: * $Id: LuaException.java,v 1.6 2006/12/22 14:06:40 thiago Exp $
03: * Copyright (C) 2003-2007 Kepler Project.
04: *
05: * Permission is hereby granted, free of charge, to any person obtaining
06: * a copy of this software and associated documentation files (the
07: * "Software"), to deal in the Software without restriction, including
08: * without limitation the rights to use, copy, modify, merge, publish,
09: * distribute, sublicense, and/or sell copies of the Software, and to
10: * permit persons to whom the Software is furnished to do so, subject to
11: * the following conditions:
12: *
13: * The above copyright notice and this permission notice shall be
14: * included in all copies or substantial portions of the Software.
15: *
16: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17: * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18: * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19: * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20: * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21: * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22: * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23: */
24:
25: package org.keplerproject.luajava;
26:
27: /**
28: * LuaJava exception
29: *
30: * @author Thiago Ponte
31: *
32: */
33: public class LuaException extends Exception {
34: /**
35: *
36: */
37: private static final long serialVersionUID = 1L;
38:
39: public LuaException(String str) {
40: super (str);
41: }
42:
43: /**
44: * Will work only on Java 1.4 or later.
45: * To work with Java 1.3, comment the first line and uncomment the second one.
46: */
47: public LuaException(Exception e) {
48: super ((e.getCause() != null) ? e.getCause() : e);
49: //super(e.getMessage());
50: }
51: }
|