FileDocCategorySizeDatePackage
AttExceptions.javaAPI DocAndroid 5.1 API2134Thu Mar 12 22:18:30 GMT 2015com.android.dx.cf.attrib

AttExceptions

public final class AttExceptions extends BaseAttribute
Attribute class for standard {@code Exceptions} attributes.

Fields Summary
public static final String
ATTRIBUTE_NAME
{@code non-null;} attribute name for attributes of this type
private final com.android.dx.rop.type.TypeList
exceptions
{@code non-null;} list of exception classes
Constructors Summary
public AttExceptions(com.android.dx.rop.type.TypeList exceptions)
Constructs an instance.

param
exceptions {@code non-null;} list of classes, presumed but not verified to be subclasses of {@code Throwable}


                             
       
        super(ATTRIBUTE_NAME);

        try {
            if (exceptions.isMutable()) {
                throw new MutabilityException("exceptions.isMutable()");
            }
        } catch (NullPointerException ex) {
            // Translate the exception.
            throw new NullPointerException("exceptions == null");
        }

        this.exceptions = exceptions;
    
Methods Summary
public intbyteLength()
{@inheritDoc}

        return 8 + exceptions.size() * 2;
    
public com.android.dx.rop.type.TypeListgetExceptions()
Gets the list of classes associated with this instance. In general, these classes are not pre-verified to be subclasses of {@code Throwable}.

return
{@code non-null;} the list of classes

        return exceptions;