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.Throwable,
Exception,
RuntimeException,
Serialized Form| Constructor and Description |
|---|
Error()
Constructs a new
Error that includes the current stack trace. |
Error(String detailMessage)
Constructs a new
Error with the current stack trace and the
specified detail message. |
Error(String detailMessage,
Throwable throwable)
Constructs a new
Error with the current stack trace, the
specified detail message and the specified cause. |
Error(Throwable throwable)
Constructs a new
Error with the current stack trace and the
specified cause. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic Error()
Error that includes the current stack trace.public Error(String detailMessage)
Error with the current stack trace and the
specified detail message.detailMessage - the detail message for this error.public Error(String detailMessage, Throwable throwable)
Error with the current stack trace, the
specified detail message and the specified cause.detailMessage - the detail message for this error.throwable - the cause of this error.public Error(Throwable throwable)
Error with the current stack trace and the
specified cause.throwable - the cause of this error.