raises
Type-hint helper — tells the compiler the Error type of this RaiseScope. Use when type inference fails and no value is available to infer from.
Parameters
Error
The error type to assert.
Type-hint helper — tells the compiler the Error type of this RaiseScope using a concrete type value. Use when type inference fails and a representative value is available.
Parameters
Error
The error type to assert.
type
A representative value used only for type inference; never evaluated at runtime.