Exceptions
attribute 4.7.5, which can appear on
methods, and records the exceptions declared to be thrown by this method.
Delivered as a MethodElement
when traversing the elements of a
java.lang.classfile.MethodModel
.
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.
Modifier and Type | Method and Description |
---|---|
public List | Returns: the exceptions declared to be thrown by this methodReturns the exceptions declared to be thrown by this method. |
public static ExceptionsAttribute | Returns: anExceptions attributethe checked exceptions that may be thrown from this method exceptions)Returns an |
public static ExceptionsAttribute | Returns: anExceptions attributethe checked exceptions that may be thrown from this method exceptions)Returns an |
public static ExceptionsAttribute | |
public static ExceptionsAttribute |
exceptions | back to summary |
---|---|
public List Returns the exceptions declared to be thrown by this method.
|
of | back to summary |
---|---|
public static ExceptionsAttribute of(List<ClassEntry> exceptions) Returns an
|
of | back to summary |
---|---|
public static ExceptionsAttribute of(ClassEntry... exceptions) Returns an
|
ofSymbols | back to summary |
---|---|
public static ExceptionsAttribute ofSymbols(List<ClassDesc> exceptions) Returns an
|
ofSymbols | back to summary |
---|---|
public static ExceptionsAttribute ofSymbols(ClassDesc... exceptions) Returns an
|