01 
02 /*
03  *  JScripter Emulation 1.0 - To Script Java
04  *  Copyright (C) 2008-2011  J.J.Liu<jianjunliu@126.com> <http://www.jscripter.org>
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.
10  *  
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU Affero General Public License for more details.
15  *  
16  *  You should have received a copy of the GNU Affero General Public License
17  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 package org.jscripter.emu.java.lang;
21 
22 /**
23  * <p>An <b>internal</b> class of an exception thrown to indicate that a method has been passed 
24  * an illegal or inappropriate argument, emulating a standard <tt>java.lang</tt> interface or 
25  * class with the same simple name as this one.</p>
26  * <p>This interface or class is only used internally by JS re-compiler implementations.</p>
27  * <p>Please refer to <a href="http://java.sun.com/docs/">the Java API Standards</a> for detail description of the original class or interface.</p>
28  * 
29  * @author <a href="mailto:jianjunliu@126.com">J.J.Liu (Jianjun Liu)</a> at <a href="http://www.jscripter.org" target="_blank">http://www.jscripter.org</a>
30  * 
31  * @javascript Re-compilers must redirect the resolution of the emulated original Java class or interface to this one.
32  */
33 public class IllegalArgumentException extends RuntimeException
34 {
35     /**
36      * <p>Internally constructs an exception of this type.</p>
37      * @since 1.0
38      * @javascript Re-compilers must report error on end-users directly using this constructor.
39      */
40     public IllegalArgumentException() {
41     }
42 
43     /**
44      * <p>Internally constructs an exception of this type with detail message.</p>
45      * @param message The detail message.
46      * @since 1.0
47      * @javascript Re-compilers must report error on end-users directly using this constructor.
48      */
49     public IllegalArgumentException(java.lang.String message) {
50         super(message);
51     }
52 
53     /**
54      * <p>Internally constructs an exception of this type with detail message and cause.</p>
55      * @param message The detail message.
56      * @param cause The cause.
57      * @since 1.0
58      * @javascript Re-compilers must report error on end-users directly using this constructor.
59      */
60     public IllegalArgumentException(java.lang.String message, Throwable cause) {
61         super(message, cause);
62     }
63 
64     /**
65      * <p>Internally constructs an exception of this type with cause.</p>
66      * @param cause The cause.
67      * @since 1.0
68      * @javascript Re-compilers must report error on end-users directly using this constructor.
69      */
70     public IllegalArgumentException(Throwable cause) {
71         super(cause);
72     }
73 }