subclass_exception
Create new exception class.
def subclass_exception(
name: str,
parent: type,
module: str
) - > type
Create new exception class.
Parameters
| Name | Type | Description |
|---|---|---|
| name | str | The name of the new exception class to be created |
| parent | type | The base exception class from which the new exception will inherit |
| module | str | The module name to be assigned to the new exception's module attribute |
Returns
| Type | Description |
|---|---|
type | A new exception class derived from the specified parent, with its module attribute set to the provided module name |