Interface TryStatement
-
- All Known Implementing Classes:
TryStatementImpl
public interface TryStatement extends Statement
try:Example:body()exceptClauses()elseClause()finallyClause()try: pass except E1 as e: pass except E2 as e: pass else: pass finally: passSee https://docs.python.org/3/reference/compound_stmts.html#the-try-statement
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StatementListbody()ElseClauseelseClause()List<ExceptClause>exceptClauses()FinallyClausefinallyClause()TokentryKeyword()
-
-
-
Method Detail
-
tryKeyword
Token tryKeyword()
-
body
StatementList body()
-
exceptClauses
List<ExceptClause> exceptClauses()
-
elseClause
@CheckForNull ElseClause elseClause()
-
finallyClause
@CheckForNull FinallyClause finallyClause()
-
-