boolean declareThrows(JSTypeExpression jsType) {
    lazyInitInfo();

    if (info.thrownTypes == null) {
      info.thrownTypes = new ArrayList<>();
    }

    info.thrownTypes.add(jsType);
    return true;
  }
boolean declareThrows ( JSTypeExpression jsType ) { lazyInitInfo ( ) ; if ( info . thrownTypes == null ) { info . thrownTypes = new ArrayList < > ( ) ; } info . thrownTypes . add ( jsType ) ; return true ; }
Declares that the method throws a given type.

@param jsType The type that can be thrown by the method.