1  /*
     2   * Copyright the original author or authors.
     3   * 
     4   * Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1 (the "License");
     5   * you may not use this file except in compliance with the License.
     6   * You may obtain a copy of the License at
     7   * 
     8   *      http://www.mozilla.org/MPL/MPL-1.1.html
     9   * 
    10   * Unless required by applicable law or agreed to in writing, software
    11   * distributed under the License is distributed on an "AS IS" BASIS,
    12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13   * See the License for the specific language governing permissions and
    14   * limitations under the License.
    15   */
    16  
    17  import org.as2lib.env.reflect.ReflectionException;
    18  
    19  /**
    20   * {@code NoSuchMethodException} is thrown to indicate that the method that has 
    21   * been searched for is not declared on the specific class or interface.
    22   * 
    23   * <p>Note that up-to-now it is not possible to find out at run-time which methods
    24   * a specific interface declares. This functionality works only for classes, that
    25   * implement methods.
    26   *
    27   * @author Simon Wacker
    28   */
    29  class org.as2lib.env.reflect.NoSuchMethodException extends ReflectionException {
    30  	
    31  	/**
    32  	 * Constructs a new {@code NoSuchMethodException} instance.
    33  	 *
    34  	 * <p>All arguments are allowed to be {@code null} or {@code undefined}. But if
    35  	 * one is, the string representation returned by the {@code toString} method
    36  	 * will not be complete.
    37  	 *
    38  	 * <p>The {@code args} array should be the internal arguments array of the
    39  	 * method that throws the throwable. The internal arguments array exists in
    40  	 * every method and contains its parameters, the callee method and the caller
    41  	 * method. You can refernce it in every method using the name
    42  	 * {@code "arguments"}.
    43  	 *
    44  	 * @param message the message that describes the problem in detail
    45  	 * @param thrower the object that declares the method that throws this
    46  	 * exception
    47  	 * @param args the arguments of the throwing method
    48  	 */
    49  	public function NoSuchMethodException(message:String, thrower, args:Array) {
    50  		super (message, thrower, args);
    51  	}
    52  	
    53  }