public ArrayList < String > getThrowsList ( ) { ArrayList < String > throwsList = new ArrayList < String > ( ) ; if ( _methodDecl == null || _methodDecl . getThrownTypes ( ) == null || _methodDecl . getThrownTypes ( ) . size ( ) == 0 ) return throwsList ; Collection < ReferenceType > thrownTypes = _methodDecl . getThrownTypes ( ) ; for ( ReferenceType exceptType : thrownTypes ) throwsList . ( exceptType . toString ( ) ) ; return throwsList ; }
Returns an ArrayList of thrown exceptions