Skip to main content

PythonDecorator AST Python Object

The ExceptClause object matches the except part of a try block.

The astType value for this node is exceptclause.


  • content (type AstElement): the content of the except block (e.g. the statements in the block)
  • exceptions (array of type AstString): name of all exceptions being raised
  • as (type AstString): if the exception is renamed