API reference

python:astx:astx.exceptions.CatchHandlerStmt

class CatchHandlerStmt

CatchHandlerStmt(body: Block[AST], name: Optional[Identifier] = None, types: Optional[Iterable[Expr] | ASTNodes[Expr]] = None, parent: Optional[ASTNodes] = None, loc: SourceLocation = NO_SOURCE_LOCATION)

Source: packages/astx/src/astx/exceptions.py:103

AST class for catch statements.

None means an untyped handler; an empty collection stays empty for semantic validation. Expressions allow qualified nominal references. Every supplied collection item is validated, including lazy iterables.

Attributes

Methods

Attributes

Search documentation

Type to search.