java::lang::Error Class Reference

Inheritance diagram for java::lang::Error:

Inheritance graph
java::awt::AWTErrorjava::io::CoderMalfunctionErrorjava::lang::AssertionErrorjava::lang::SystemErrorjava::lang::Throwablejava::lang::Objectjava::lang::InternalErrorjava::lang::UnknownError
[legend]
Collaboration diagram for java::lang::Error:

Collaboration graph
java::lang::Throwablejava::lang::Objectjava::lang::Stringjava::lang::Interfacejava::lang::ObjectRefjava::lang::Comparable
[legend]

List of all members.


Detailed Description

An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch.

Most such errors are abnormal conditions. The ThreadDeath error, though a "normal" condition, is also a subclass of Error because most applications should not try to catch it.

A method is not required to declare in its throws clause any subclasses of Error that might be thrown during the execution of the method but not caught, since these errors are abnormal conditions that should never occur.

Author:
Frank Yellin
Version:
1.15, 01/23/03
See also:
java.lang.ThreadDeath
Since:
JDK1.0

Public Member Functions

 Error (const String &message=nilCString, const Ref< Throwable > &cause=0)
 Constructs a new error with the specified detail message.

Constructor & Destructor Documentation

java::lang::Error::Error ( const String message = nilCString,
const Ref< Throwable > &  cause = 0 
)

Constructs a new error with the specified detail message.

The cause is not initialized, and may subsequently be initialized by a call to initCause.

Parameters:
message the detail message. The detail message is saved for later retrieval by the getMessage() method.


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:36 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3