snakia.utils.exceptions

Functions

catch(func, *exceptions[, default])

overload(func)

Decorator for overloaded functions/methods.

throw(*exceptions[, from_])

Throw an exception.

Classes

TypeVar(name, *constraints[, bound, ...])

Type variable.

Unset()

Exceptions

ExceptionGroup(_BaseExceptionGroup__message, ...)

snakia.utils.exceptions.catch(func, *exceptions, default=None)[source]
Return type:

Union[TypeVar(T), Any]

snakia.utils.exceptions.throw(*exceptions, from_=<class 'snakia.types.unique.Unset'>)[source]

Throw an exception.

Return type:

NoReturn