✗
public class Error
extends java.lang.Throwable
Comparing jdk-20-ga and jdk-21+35
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AnnotationFormatError,AssertionError,AWTError,CoderMalfunctionError,FactoryConfigurationError,FactoryConfigurationError,IOError,LinkageError,SchemaFactoryConfigurationError,ServiceConfigurationError,ThreadDeath,TransformerFactoryConfigurationError,VirtualMachineError
An
Error
is a subclass of Throwable
that indicates serious problems that a reasonable application should not try to catch. Most such errors are abnormal conditions. A method is not required to declare in its throws
clause any subclasses of Error
that might be thrown during the execution of the method but not caught, since these errors are abnormal conditions that should never occur. That is, Error
and its subclasses are regarded as unchecked exceptions for the purposes of compile-time checking of exceptions.
- See Java Language Specification:
- Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se20/html/jls-11.html#jls-11.2.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-11.html#jls-11.2. Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se20/html/jls-11.html#jls-11.2.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-11.html#jls-11.2.11.2 Compile-Time Checking of Exceptions
- Since:
- 1.0
- See Also:
Constructors
- ✓public Error()
- ✓public Error(java.lang.String arg0)
- ✓public Error(java.lang.String arg0, java.lang.Throwable arg1)
- ✓protected Error(java.lang.String arg0, java.lang.Throwable arg1, boolean arg2, boolean arg3)
- ✓public Error(java.lang.Throwable arg0)
Serialized Form
✓serialVersionUID
✓4980196508277280342Summary
| Elements | Comments | Descriptions | Total | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed | ||
| Error | 1 | 1 | ||||||||
| Total | 1 | 1 | ||||||||