Represents a try { ... } catch () finally {} statement in Groovy
| Fields inherited from class | Fields | 
|---|---|
| interface Statement | CLOSE_CURRENT_RESULT, KEEP_CURRENT_RESULT, CLOSE_ALL_RESULTS, SUCCESS_NO_INFO, EXECUTE_FAILED, RETURN_GENERATED_KEYS, NO_GENERATED_KEYS | 
| Type | Name and description | 
|---|---|
| CatchStatement | catchStatement | 
| Statement | finallyStatement | 
| Statement | tryStatement | 
| Constructor and description | 
|---|
| TryCatchStatement
                                (Statement tryStatement, Statement finallyStatement) | 
| Type Params | Return Type | Name and description | 
|---|---|---|
|  | void | addCatch(CatchStatement catchStatement) | 
|  | CatchStatement | getCatchStatement(int idx)@return the catch statement of the given index or null | 
|  | List<CatchStatement> | getCatchStatements() | 
|  | Statement | getFinallyStatement() | 
|  | Statement | getTryStatement() | 
|  | void | setCatchStatement(int idx, CatchStatement catchStatement) | 
|  | void | setFinallyStatement(Statement finallyStatement) | 
|  | void | setTryStatement(Statement tryStatement) | 
|  | void | visit(GroovyCodeVisitor visitor) | 
Copyright © 2003-2021 The Apache Software Foundation. All rights reserved.