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:114
Initialize the instance.
Parameters
-
body — Statements forming the body.; Type: Block[AST]
-
name — Name identifying the declaration or operation.; Type: Optional[Identifier]
-
types — Types.; Type: Optional[Iterable[Expr] | ASTNodes[Expr]]
-
parent — Parent node or enclosing scope.; Type: Optional[ASTNodes]
-
loc — Source coordinates associated with the node.; Type: SourceLocation
Returns
Type: None