java.lang
Class Error
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- Direct Known Subclasses:
- ExceptionInInitializerError, IncompatibleClassChangeError, UnsatisfiedLinkError, 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
-
-
Constructor Summary
Constructors Constructor and Description Error()
Constructs a newError
that includes the current stack trace.Error(String detailMessage)
Constructs a newError
with the current stack trace and the specified detail message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
fillInStackTrace, getMessage, getStackTrace, printStackTrace, printStackTrace, toString
-
-
-
-
Constructor Detail
-
Error
public Error()
Constructs a newError
that includes the current stack trace.
-
Error
public Error(String detailMessage)
Constructs a newError
with the current stack trace and the specified detail message.- Parameters:
detailMessage
- the detail message for this error.
-
-