Module java.base
Package java.lang.classfile.attribute

# Interface ExceptionsAttribute

≠
public abstract sealed interface ExceptionsAttribute
extends java.lang.classfile.Attribute<java.lang.classfile.attribute.ExceptionsAttribute>, java.lang.classfile.MethodElement
permits jdk.internal.classfile.impl.BoundAttribute.BoundExceptionsAttribute, jdk.internal.classfile.impl.UnboundAttribute.UnboundExceptionsAttribute
Comparing jdk-master and valhalla-csr-open

All Superinterfaces:
  `AttributePREVIEW <ExceptionsAttribute>, ClassFileElement, MethodElement`

public sealed interface ExceptionsAttribute extends AttributePREVIEW <ExceptionsAttribute>, MethodElement
Models the `Exceptions` attribute (JVMS §4.7.5), which records the exceptions declared to be thrown by this method.

This attribute only appears on methods, and does not permit multiple instances in a method. It has a data dependency on the constant pool.

The attribute was introduced in the Java Platform version 1.0.2, major version 45.

API Note:
  Generic exceptions types thrown by a method and potentially annotated use of those types are defined by `SignatureAttribute` and `RuntimeVisibleTypeAnnotationsAttribute` respectively, which requires this attribute to be present.
See Java Virtual Machine Specification:
  4.7.5 The `Exceptions` Attribute
Since:
  24
See Also:
  - `Attributes.exceptions()`

## Methods

- =
  public abstract java.util.List<java.lang.classfile.constantpool.ClassEntry> exceptions()
- =
  public static java.lang.classfile.attribute.ExceptionsAttribute of(java.lang.classfile.constantpool.ClassEntry[] arg0)
- =
  public static java.lang.classfile.attribute.ExceptionsAttribute of(java.util.List<java.lang.classfile.constantpool.ClassEntry> arg0)
- =
  public static java.lang.classfile.attribute.ExceptionsAttribute ofSymbols(java.lang.constant.ClassDesc[] arg0)
- =
  public static java.lang.classfile.attribute.ExceptionsAttribute ofSymbols(java.util.List<java.lang.constant.ClassDesc> arg0)

## Summary

Differences
| Elements | Comments | Descriptions | Total
Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed
--- | --- | --- | --- | --- | --- | --- | --- | ---
ExceptionsAttribute |  |  |  |  |  |  | 2 |  |  | 2
Total |  |  |  |  |  |  | 2 |  |  | 2