UnknownError (Java SE 17 & JDK 17)
- All Implemented Interfaces:
Serializable
Thrown when an unknown but serious exception has occurred in the Java Virtual Machine.
- Since:
- 1.0
- See Also:
-
Constructor Summary
Constructors
Constructs an
UnknownErrorwith no detail message.Constructs an
UnknownErrorwith the specified detail message. -
Method Summary
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnknownError
public UnknownError()
Constructs an
UnknownErrorwith no detail message. -
UnknownError
public UnknownError
(String s) Constructs an
UnknownErrorwith the specified detail message.- Parameters:
s- the detail message.
-