synt.stmt.raising
¤
Raise
¤
Bases: Statement
The raise
statement.
Examples:
References
Source code in synt/stmt/raising.py
__init__
¤
|
Initialize a new raise
statement.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exception |
IntoExpression | None
|
The exception to raise. |
None
|
Source code in synt/stmt/raising.py
from_
¤
|
Set the cause of the raised exception.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cause |
IntoExpression
|
The origin of the raised exception. |
required |
Raises:
Type | Description |
---|---|
ValueError
|
If |