java.lang
Class Exception
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
The root class of all exceptions worth catching in a program. This
includes the special category of RuntimeException
, which
does not need to be declared in a throws clause. Exceptions can be used
to represent almost any exceptional behavior, such as programming errors,
mouse movements, keyboard clicking, etc.
Authors:- Brian Jones
- Warren Levy <warrenl@cygnus.com>
- Eric Blake <ebb9@email.byu.edu>
Exception
public Exception()
Create an exception without a message. The cause remains uninitialized.
See Also:
Exception
public Exception(java.lang.String s)
Create an exception with a message. The cause remains uninitialized.
Parameters:
See Also:
Exception
public Exception(java.lang.String s, java.lang.Throwable cause)
Create an exception with a message and a cause.
Since:Parameters:
Exception
public Exception(java.lang.Throwable cause)
Create an exception with a given cause, and a message of
cause == null ? null : cause.toString()
.
Since:Parameters:
RuntimeException
, which does not need to be declared in a throws clause. Exceptions can be used to represent almost any exceptional behavior, such as programming errors, mouse movements, keyboard clicking, etc.