API reference
python:astx:astx.ThrowStmt.__init__
method __init__
__init__(exception: Optional[Expr] = None, parent: Optional[ASTNodes] = None, loc: SourceLocation = NO_SOURCE_LOCATION, *, cause: Optional[Expr] = None) -> None
Source: packages/astx/src/astx/exceptions.py:46
Declared as: python:astx:astx.exceptions.ThrowStmt.__init__
Initialize the instance.
Parameters
-
exception — Exception being handled.; Type: Optional[Expr]
-
parent — Parent node or enclosing scope.; Type: Optional[ASTNodes]
-
loc — Source coordinates associated with the node.; Type: SourceLocation
-
cause — Cause.; Type: Optional[Expr]
Returns
Type: None