Back to index

plt-scheme  4.2.1
Public Member Functions | Static Private Attributes
java.lang.Exception Class Reference

The root class of all exceptions worth catching in a program. More...

Inheritance diagram for java.lang.Exception:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Exception ()
 Create an exception without a message.
 Exception (String s)
 Create an exception with a message.
 Exception (String s, Throwable cause)
 Create an exception with a message and a cause.
 Exception (Throwable cause)
 Create an exception with a given cause, and a message of cause == null ? null : cause.toString().

Static Private Attributes

static final long serialVersionUID = -3387516993124229948L
 Compatible with JDK 1.0+.

Detailed Description

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.

Author:
Brian Jones
Warren Levy warre.nosp@m.nl@c.nosp@m.ygnus.nosp@m..com
Eric Blake ebb9@.nosp@m.emai.nosp@m.l.byu.nosp@m..edu updated to 1.4

Definition at line 54 of file Exception.java.


Constructor & Destructor Documentation

Create an exception without a message.

The cause remains uninitialized.

See also:
#initCause(Throwable)

Definition at line 66 of file Exception.java.

  {
  }
java.lang.Exception.Exception ( String  s) [inline]

Create an exception with a message.

The cause remains uninitialized.

Parameters:
sthe message
See also:
#initCause(Throwable)

Definition at line 76 of file Exception.java.

  {
    super(s);
  }
java.lang.Exception.Exception ( String  s,
Throwable  cause 
) [inline]

Create an exception with a message and a cause.

Parameters:
sthe message string
causethe cause of this error
Since:
1.4

Definition at line 88 of file Exception.java.

  {
    super(s, cause);
  }
java.lang.Exception.Exception ( Throwable  cause) [inline]

Create an exception with a given cause, and a message of cause == null ? null : cause.toString().

Parameters:
causethe cause of this exception
Since:
1.4

Definition at line 100 of file Exception.java.

  {
    super(cause);
  }

Member Data Documentation

final long java.lang.Exception.serialVersionUID = -3387516993124229948L [static, private]

The documentation for this class was generated from the following file: