SCAutolib.exceptions

Exceptions that are used in the SCAutolib library. This module defines a hierarchy of custom exception classes that are raised by SCAutolib components to signal specific error conditions during operations. These custom exceptions provide more specific context than generic Python exceptions, aiding in error handling and debugging.

Exceptions

exception SCAutolibException(*args)[source]

Base exception class for all custom exceptions within SCAutolib. All other SCAutolib-specific exceptions inherit from this class, allowing for a unified way to catch any error originating from the library.

exception SCAutolibMissingCA(msg=None)[source]

Exception raised when a Certificate Authority (CA) required for an operation is not configured on the system. This typically occurs if a smart card enrollment or certificate request is attempted without a proper CA setup.

exception SCAutolibMissingUserConfig(name)[source]

Exception raised when a user, specified by their name, is expected to be found in the configuration file but is not present. This indicates that the library cannot proceed with operations for the requested user due to missing configuration.

exception SCAutolibWrongConfig(msg=None)[source]

Exception raised when a required key or section is missing or is incorrectly configured in the application’s configuration file. This signals that the current operation cannot proceed due to an invalid or incomplete configuration setup.