API reference
python:astx:astx.exceptions.CatchHandlerStmt.__init__
method __init__
__init__(body: Block[AST], name: Optional[Identifier] = None, types: Optional[Iterable[Expr] | ASTNodes[Expr]] = None, parent: Optional[ASTNodes] = None, loc: SourceLocation = NO_SOURCE_LOCATION) -> None
Source: packages/astx/src/astx/exceptions.py:129
Initialize the instance.
Parameters
-
body — Type: Block[AST]
-
name — Type: Optional[Identifier]
-
types — Type: Optional[Iterable[Expr] | ASTNodes[Expr]]
-
parent — Type: Optional[ASTNodes]
-
loc — Type: SourceLocation