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:49

Declared as: python:astx:astx.exceptions.ThrowStmt.__init__

Initialize the instance.

Parameters

Search documentation

Type to search.