SmartclassError

Base exception for all smartclass errors.

Usage

Source

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

Source

__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

Source

__str__()
Returns
str
The message passed at construction time.