java.lang
Class Exception

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
Direct Known Subclasses:
AWTException, ClassNotFoundException, CloneNotSupportedException, IllegalAccessException, InstantiationException, InterruptedException, IOException, NoSuchMethodException, RuntimeException

public class Exception
extends Throwable

Exception are a form of Throwable that normal programs may wish to try and catch.


Constructor Summary
Exception()
          Constructs an Exception with no specified detail message.
Exception(String s)
          Constructs a Exception with the specified detail message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getMessage, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Exception

public Exception()
Constructs an Exception with no specified detail message. A detail message is a String that describes this particular exception.


Exception

public Exception(String s)
Constructs a Exception with the specified detail message. A detail message is a String that describes this particular exception.

Parameters:
s - the detail message