Skip to content

Exceptions

TOMLConfigFileNotFound

Bases: TOMLConfiguratorException

Raised when the TOML configuration file is not found.

Source code in src/simple_toml_configurator/exceptions.py
class TOMLConfigFileNotFound(TOMLConfiguratorException):
    """Raised when the TOML configuration file is not found."""
    pass

TOMLConfigUpdateError

Bases: TOMLConfiguratorException

Raised when an error occurs while updating the TOML configuration file.

Source code in src/simple_toml_configurator/exceptions.py
5
6
7
class TOMLConfigUpdateError(TOMLConfiguratorException):
    """Raised when an error occurs while updating the TOML configuration file."""
    pass

TOMLConfiguratorException

Bases: Exception

Base class for all exceptions raised by the TomlConfigurator class.

Source code in src/simple_toml_configurator/exceptions.py
1
2
3
class TOMLConfiguratorException(Exception):
    """Base class for all exceptions raised by the TomlConfigurator class."""
    pass

TOMLCreateConfigError

Bases: TOMLConfiguratorException

Raised when an error occurs while creating the TOML configuration file.

Source code in src/simple_toml_configurator/exceptions.py
class TOMLCreateConfigError(TOMLConfiguratorException):
    """Raised when an error occurs while creating the TOML configuration file."""
    pass

TOMLLoadConfigError

Bases: TOMLConfiguratorException

Raised when an error occurs while loading the TOML configuration file.

Source code in src/simple_toml_configurator/exceptions.py
class  TOMLLoadConfigError(TOMLConfiguratorException):
    """Raised when an error occurs while loading the TOML configuration file."""
    pass

TOMLWriteConfigError

Bases: TOMLConfiguratorException

Raised when an error occurs while writing the TOML configuration file.

Source code in src/simple_toml_configurator/exceptions.py
class TOMLWriteConfigError(TOMLConfiguratorException):
    """Raised when an error occurs while writing the TOML configuration file."""
    pass