jdk-20-ga : jdk-21+35
Module java.base
Package java.lang

Class Error

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

public class Error extends Throwable
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

Serialized Form

serialVersionUID

4980196508277280342

Summary

Differences
Elements Comments Descriptions Total
Added Changed Removed Added Changed Removed Added Changed Removed
Error 1 1
Total 1 1