exceptions¶
exceptions ¶
NoExcelFilesFoundError ¶
Bases: FileNotFoundError
Raised when no Excel files are found where at least one was expected.
Source code in source/src/imarina_load_researchers/core/exceptions.py
OutputLinkMissingError ¶
Bases: ValueError
Raised when publish is asked to resolve a file from an MS List item that has no "iMarina Excel output link" field set.
Source code in source/src/imarina_load_researchers/core/exceptions.py
EnvVarMissingError ¶
Bases: KeyError
Raised when a required environment variable is not set at all.
Source code in source/src/imarina_load_researchers/core/exceptions.py
EnvVarEmptyError ¶
Bases: ValueError
Raised when a required environment variable is set but its value is empty.
Source code in source/src/imarina_load_researchers/core/exceptions.py
FileContentEmptyError ¶
Bases: ValueError
Raised when a file exists and is readable but has no content.
Source code in source/src/imarina_load_researchers/core/exceptions.py
FileMissingError ¶
Bases: FileNotFoundError
Raised when an expected file does not exist at the given path.
Source code in source/src/imarina_load_researchers/core/exceptions.py
FileUnreadableError ¶
Bases: PermissionError
Raised when a file exists but cannot be opened due to file permissions.
Source code in source/src/imarina_load_researchers/core/exceptions.py
SftpSessionError ¶
Bases: RuntimeError
Raised when opening an SFTP session over an existing transport fails.
Source code in source/src/imarina_load_researchers/core/exceptions.py
UnknownLogLevelError ¶
Bases: ValueError
Raised when a configured log level string doesn't match any known level.
Source code in source/src/imarina_load_researchers/core/exceptions.py
SecretUnavailableError ¶
Bases: RuntimeError
Raised when a secret could not be resolved from any of read_secret's fallback sources (Docker secret, local file, environment variable, Vault).
Source code in source/src/imarina_load_researchers/core/exceptions.py
SharePointError ¶
Bases: Exception
Raised when a SharePoint Graph API call fails or returns unexpected data.
Source code in source/src/imarina_load_researchers/core/exceptions.py
TokenNotSetError ¶
Bases: RuntimeError
Raised when a token refresh completes without ever setting an access token.
Source code in source/src/imarina_load_researchers/core/exceptions.py
TokenRequestError ¶
Bases: RuntimeError
Raised when requesting an access token from the identity provider fails.
Source code in source/src/imarina_load_researchers/core/exceptions.py
MissingCredentialsError ¶
Bases: ValueError
Raised when TENANT_ID, CLIENT_ID or CLIENT_SECRET cannot be resolved from secrets.
Source code in source/src/imarina_load_researchers/core/exceptions.py
VaultCredentialMissingError ¶
Bases: KeyError
Raised when a Vault-connection credential (e.g. the Vault token) is missing from both secrets and the environment.
Source code in source/src/imarina_load_researchers/core/exceptions.py
VaultMappingMissingError ¶
Bases: KeyError
Raised when a SecretName has no entry in vault.py's _SECRET_MAP, so the Vault fallback has no subpath/field to look it up under.
Source code in source/src/imarina_load_researchers/core/exceptions.py
VaultFieldMissingError ¶
Bases: KeyError
Raised when a Vault secret was found at its path but doesn't contain the expected field.
Source code in source/src/imarina_load_researchers/core/exceptions.py
VaultSecretEmptyError ¶
Bases: ValueError
Raised when a Vault secret's field was found but its value is empty.