FileDocCategorySizeDatePackage
NotImplementedException.javaAPI DocAndroid 1.5 API3080Wed May 06 22:41:04 BST 2009org.apache.harmony.luni.util

NotImplementedException

public class NotImplementedException extends RuntimeException
This exception is thrown by methods that are not currently implemented, so that programs that call the stubs fail early and predictably.

Fields Summary
private static final long
serialVersionUID
Comment for serialVersionUID
Constructors Summary
public NotImplementedException()
Default constructor.


           
      
        this(System.err);
    
public NotImplementedException(PrintStream stream)

        super();
        stream.println("*** NOT IMPLEMENTED EXCEPTION ***");
        StackTraceElement thrower = getStackTrace()[0];
        stream.println("*** thrown from class  -> " + thrower.getClassName());
        stream.println("***             method -> " + thrower.getMethodName());

        stream.print("*** defined in         -> ");
        if (thrower.isNativeMethod()) {
            stream.println("a native method");
        } else {
            String fileName = thrower.getFileName();
            if (fileName == null) {
                stream.println("an unknown source");
            } else {
                int lineNumber = thrower.getLineNumber();
                stream.print("the file \"" + fileName + "\"");
                if (lineNumber >= 0) {
                    stream.print(" on line #" + lineNumber);
                }
                stream.println();
            }
        }
    
public NotImplementedException(String detailMessage)
Constructor that takes a reason message.

param
detailMessage

        super(detailMessage);
    
public NotImplementedException(String detailMessage, Throwable throwable)
Constructor that takes a reason and a wrapped exception.

param
detailMessage
param
throwable

        super(detailMessage, throwable);
    
public NotImplementedException(Throwable throwable)
Constructor that takes a wrapped exception.

param
throwable

        super(throwable);
    
Methods Summary