Interface ExceptClause

All Superinterfaces:
Tree
All Known Implementing Classes:
ExceptClauseImpl

public interface ExceptClause extends Tree
   except exception() as exceptionInstance():
     body()
 
or (Python 2 syntax)
   except exception() , exceptionInstance():
     body()
 
See https://docs.python.org/3/reference/compound_stmts.html#the-try-statement
  • Method Details

    • exceptKeyword

      Token exceptKeyword()
    • starToken

      @CheckForNull Token starToken()
    • exception

      @CheckForNull Expression exception()
    • asKeyword

      @CheckForNull Token asKeyword()
    • commaToken

      @CheckForNull @Deprecated(since="5.12") Token commaToken()
      Deprecated.
    • exceptionInstance

      @CheckForNull Expression exceptionInstance()
    • colon

      @Beta Token colon()
    • body