SmartclassError
Base exception for all smartclass errors.
Usage
SmartclassError()All custom exceptions in smartclass inherit from this class, making it easy to catch all smartclass-specific errors.
Methods
| Name | Description |
|---|---|
| __init__() | Initialize with a descriptive message. |
| __str__() | Return the human-readable error message. |
__init__()
Initialize with a descriptive message.
Usage
__init__(message, *args, **kwargs)Parameters
message: str-
Human-readable error description.
*args: Any-
Additional positional arguments forwarded to the base
Exception. **kwargs: Any-
Additional keyword arguments forwarded to the base
Exception.
__str__()
Return the human-readable error message.
Usage
__str__()Returns
str- The message passed at construction time.