Module java.base

Interface ExceptionsAttribute

All Superinterfaces:
AttributePREVIEW<ExceptionsAttributePREVIEW>, ClassFileElementPREVIEW, MethodElementPREVIEW, WritableElementPREVIEW<ExceptionsAttributePREVIEW>

public sealed interface ExceptionsAttribute extends AttributePREVIEW<ExceptionsAttributePREVIEW>, MethodElementPREVIEW
ExceptionsAttribute is a preview API of the Java platform.
Programs can only use ExceptionsAttribute when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models the Exceptions attribute 4.7.5, which can appear on methods, and records the exceptions declared to be thrown by this method. Delivered as a MethodElementPREVIEW when traversing the elements of a MethodModelPREVIEW.

The attribute does not permit multiple instances in a given location. Subsequent occurrence of the attribute takes precedence during the attributed element build or transformation.

Since:
22