Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.lang
Class Error  view Error download Error.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AssertionError, LinkageError, ThreadDeath, VirtualMachineError

public class Error
extends Throwable

Applications should not try to catch errors since they indicate abnormal conditions. An abnormal condition is something which should not occur, or which should not be recovered from. This latter category includes ThreadDeath and AssertionError.

A method is not required to declare any subclass of Error in its throws clause which might be thrown but not caught while executing the method.

Since:
1.0

Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private static long serialVersionUID
          Compatible with JDK 1.0+.
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
Error()
          Create an error without a message.
Error(String s)
          Create an error with a message.
Error(String s, Throwable cause)
          Create an error with a message and a cause.
Error(Throwable cause)
          Create an error with a given cause, and a message of cause == null ? null : cause.toString().
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Compatible with JDK 1.0+.

See Also:
Constant Field Values
Constructor Detail

Error

public Error()
Create an error without a message. The cause remains uninitialized.


Error

public Error(String s)
Create an error with a message. The cause remains uninitialized.


Error

public Error(String s,
             Throwable cause)
Create an error with a message and a cause.

Since:
1.4

Error

public Error(Throwable cause)
Create an error with a given cause, and a message of cause == null ? null : cause.toString().

Since:
1.4