API reference
python:astx:astx.exceptions.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:49
Initialize the instance.
Parameters
-
exception — Type: Optional[Expr]
-
parent — Type: Optional[ASTNodes]
-
loc — Type: SourceLocation
-
cause — Type: Optional[Expr]