Exceptions¶
Custom exceptions
Usage
from logging_strict import (
LoggingStrictError,
LoggingStrictPackageNameRequired,
LoggingStrictPackageStartFolderNameRequired,
LoggingStrictProcessCategoryRequired,
LoggingStrictGenreRequired,
)
Module private variables
- logging_strict.exceptions.__all__: tuple[str, str, str, str, str] = ("LoggingStrictError", "LoggingStrictPackageNameRequired", "LoggingStrictPackageStartFolderNameRequired", "LoggingStrictProcessCategoryRequired", "LoggingStrictGenreRequired")¶
Module exports
Module objects
- exception logging_strict.exceptions.LoggingStrictError(msg)¶
Catchall back exception
- Variables:
msg (str) – The error message
- __firstlineno__ = 41¶
- __init__(msg)¶
Exception class constructor
- __module__ = 'logging_strict.exceptions'¶
- __static_attributes__ = ()¶
- __weakref__¶
list of weak references to the object
- exception logging_strict.exceptions.LoggingStrictGenreRequired(msg)¶
Genre is required
- Variables:
msg (str) – The error message
- __annotations__ = {}¶
- __firstlineno__ = 89¶
- __init__(msg)¶
Exception class constructor
- __module__ = 'logging_strict.exceptions'¶
- __static_attributes__ = ()¶
- exception logging_strict.exceptions.LoggingStrictPackageNameRequired(msg)¶
In entrypoint, package name is required
- Variables:
msg (str) – The error message
- __annotations__ = {}¶
- __firstlineno__ = 53¶
- __init__(msg)¶
Exception class constructor
- __module__ = 'logging_strict.exceptions'¶
- __static_attributes__ = ()¶
- exception logging_strict.exceptions.LoggingStrictPackageStartFolderNameRequired(msg)¶
In entrypoint, package start data folder name is required
- Variables:
msg (str) – The error message
- __annotations__ = {}¶
- __firstlineno__ = 65¶
- __init__(msg)¶
Exception class constructor
- __module__ = 'logging_strict.exceptions'¶
- __static_attributes__ = ()¶