public static TypeList getExceptions(Method method) {
    AttributeList attribs = method.getAttributes();
    AttExceptions exceptions = (AttExceptions) attribs.findFirst(AttExceptions.ATTRIBUTE_NAME);

    if (exceptions == null) {
      return StdTypeList.EMPTY;
    }

    return exceptions.getExceptions();
  }
Gets the list of thrown exceptions for a given method.

@param method {@code non-null;} the method in question
@return {@code non-null;} the list of thrown exceptions
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/cf/AttributeTranslator.java