FileDocCategorySizeDatePackage
InstantiationError.javaAPI DocAndroid 1.5 API2179Wed May 06 22:41:04 BST 2009java.lang

InstantiationError

public class InstantiationError extends IncompatibleClassChangeError
Thrown when the virtual machine notices that a program tries to create a new instance of a class which has no visible constructors from the location where {@code new} is invoked.

Note that this can only occur when inconsistent class files are being loaded.

since
Android 1.0

Fields Summary
private static final long
serialVersionUID
Constructors Summary
public InstantiationError()
Constructs a new {@code InstantiationError} that includes the current stack trace.

since
Android 1.0


                        
      
        super();
    
public InstantiationError(String detailMessage)
Constructs a new {@code InstantiationError} with the current stack trace and the specified detail message.

param
detailMessage the detail message for this error.
since
Android 1.0

        super(detailMessage);
    
InstantiationError(Class clazz)
Constructs a new {@code InstantiationError} with the current stack trace and the class that caused this error.

param
clazz the class that can not be instantiated.
since
Android 1.0

        super(clazz.getName());
    
Methods Summary