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__ = 50
__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__ = 98
__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__ = 62
__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__ = 74
__init__(msg)

Exception class constructor

__module__ = 'logging_strict.exceptions'
__static_attributes__ = ()
exception logging_strict.exceptions.LoggingStrictProcessCategoryRequired(msg)

Category is required

Variables:

msg (str) – The error message

__annotations__ = {}
__firstlineno__ = 86
__init__(msg)

Exception class constructor

__module__ = 'logging_strict.exceptions'
__static_attributes__ = ()
exception logging_strict.exceptions.PackageNotFoundError

The package was not found.

__firstlineno__ = 63
__module__ = 'importlib_metadata'
__static_attributes__ = ()
__str__() → str

Return str(self).

__weakref__

list of weak references to the object

property name: str

module name