Package java.lang
Class Error
java.lang.Object
java.lang.Throwable
java.lang.Error
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AnnotationFormatError,AssertionError,CoderMalfunctionError,FactoryConfigurationError,IOError,LinkageError,ServiceConfigurationError,ThreadDeath,TransformerFactoryConfigurationError,VirtualMachineError
public class Error extends Throwable
Error is the superclass of all classes that represent unrecoverable
errors. When errors are thrown, they should not be caught by application
code.- See Also:
Throwable,Exception,RuntimeException, Serialized Form
-
Constructor Summary
Constructors Constructor Description Error()Constructs a newErrorthat includes the current stack trace.Error(String detailMessage)Constructs a newErrorwith the current stack trace and the specified detail message.Error(String detailMessage, Throwable throwable)Constructs a newErrorwith the current stack trace, the specified detail message and the specified cause.Error(Throwable throwable)Constructs a newErrorwith the current stack trace and the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Error
public Error()Constructs a newErrorthat includes the current stack trace. -
Error
Constructs a newErrorwith the current stack trace and the specified detail message.- Parameters:
detailMessage- the detail message for this error.
-
Error
Constructs a newErrorwith the current stack trace, the specified detail message and the specified cause.- Parameters:
detailMessage- the detail message for this error.throwable- the cause of this error.
-
Error
Constructs a newErrorwith the current stack trace and the specified cause.- Parameters:
throwable- the cause of this error.
-