aicas logoJamaica 6.1 release 1

java.lang
Class Error

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AnnotationFormatError, AssertionError, AWTError, CoderMalfunctionError, DeadLockError, FactoryConfigurationError, FactoryConfigurationError, IllegalAssignmentError, IOError, LinkageError, MemoryAccessError, ResourceLimitError, ServiceConfigurationError, ThreadDeath, ThrowBoundaryError, TransformerFactoryConfigurationError, VirtualMachineError

public class Error
extends Throwable

Sub-classes of Error describe abnormal exceptional states within the virtual machine or application. Errors are 'unchecked', that is they need not be declared to be thrown by a method nor must they be caught by a calling method. In most cases it is not useful to catch Errors.

See Also:
Serialized Form

Constructor Summary
Error()
          Create a new Error object with no detail message.
Error(String s)
          Create a new Error object with a given message.
Error(String s, Throwable ex)
          Create a new Error object with a given message and the original cause.
Error(Throwable ex)
          Create a new Error object with the given cause.
 
Method Summary
 
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
 

Constructor Detail

Error

public Error()
Create a new Error object with no detail message.


Error

public Error(String s)
Create a new Error object with a given message.

ensures

    (s != null IMPLIES getMessage().equals(s));
 

Parameters:
s - message describing the error.

Error

public Error(String s,
             Throwable ex)
Create a new Error object with a given message and the original cause.

ensures

    (s  != null IMPLIES getMessage().equals(s),
     ex != null IMPLIES getCause() == ex);
 

Parameters:
s - message describing the error.
ex - cause of this error.
Since:
1.4

Error

public Error(Throwable ex)
Create a new Error object with the given cause.

ensures

    (ex != null IMPLIES getCause() == ex && getMessage().equals(ex.toString()));
 

Parameters:
ex - cause of this error.
Since:
1.4

aicas logoJamaica 6.1 release 1

aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2012 aicas GmbH. All Rights Reserved.