The Exceptions attribute is a variable-length attribute used in the attributes
table of a {@link com.vladium.jcd.cls.Method_info} structure. The Exceptions
attribute indicates which checked exceptions a method may throw. There must be
exactly one Exceptions attribute in each method_info structure.
The Exceptions attribute has the following format:
Exceptions_attribute {
u2 attribute_name_index;
u4 attribute_length;
u2 number_of_exceptions;
u2 exception_index_table[number_of_exceptions];
}
The value of the number_of_exceptions item indicates the number of entries
in the exception_index_table.
Each nonzero value in the exception_index_table array must be a valid index
into the constant_pool table. For each table item, if
exception_index_table[i] != 0 , where 0 < i < number_of_exceptions,
then the constant_pool entry at index exception_index_table[i] must be a
{@link com.vladium.jcd.cls.constant.CONSTANT_Class_info} structure representing
a class type that this method is declared to throw -- see {@link DeclaredExceptionTable}. |