Package java.lang Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class NoSuchMethodError

Constructors

public  class  java.lang.NoSuchMethodError
    extends  java.lang.IncompatibleClassChangeError  
{
        // Constructors
    public NoSuchMethodError();	
    public NoSuchMethodError(String  s);	
}

Thrown if an application tries to call a specified method of a class (either static or instance),and that class no longer has a definition of that method.

Normally, this error is caught by the compiler; this error can only occur at runtime if the definition of a class has incompatibably changed.


Constructors


NoSuchMethodError

public NoSuchMethodError() 

Constructs a NoSuchMethodException with no detail message.


NoSuchMethodError

public NoSuchMethodError(String  s) 

Constructs a NoSuchMethodException with the specified detail message.

ParameterDescription
s the detail message



© 1996 Sun Microsystems, Inc. All rights reserved.