SamsConfigErrors – Config Errors

class AuthTypeNotSpecified(payload: Optional[Dict[str, Any]] = None, exception: Optional[Exception] = None)

Raised when the SAMS_AUTH_TYPE config attribute is undefined

app_code: str = '02001'
description: str = 'Auth type not specified'
http_code: int = 500
log_exception: bool = True
class AuthTypeHasNoGetAuthInstance(payload: Optional[Dict[str, Any]] = None, exception: Optional[Exception] = None)

Raised when loading the Auth module if get_auth_instance is undefined

app_code: str = '02002'
description: str = 'Configured Auth type must have a "get_auth_instance" method'
http_code: int = 500
log_exception: bool = True
class StorageProviderConfigStringNotProvided(payload: Optional[Dict[str, Any]] = None, exception: Optional[Exception] = None)

Raised when a StorageProvider receives an empty config

app_code: str = '02003'
description: str = '"config_string" must be provided'
http_code: int = 500
log_exception: bool = True
class StorageProviderIncorrectConfigArguments(num_args: int, exception: Optional[Exception] = None)

Raised when a StorageProvider received incorrect number of config arguments

app_code: str = '02004'
description: str = 'Incorrect number of arguments, expected 3 but received {num_args}'
http_code: int = 500
log_exception: bool = True
class StorageProviderInvalidConfig(src_provider: str, dest_provider: str, exception: Optional[Exception] = None)

Raised when a StorageProvider received config for an incompatible StorageProvider

app_code: str = '02005'
description: str = 'Incorrect config entry for provider {dest_provider}, received entry for {src_provider}'
http_code: int = 500
log_exception: bool = True
class BasicAuthAPIKeysNotProvided(payload: Optional[Dict[str, Any]] = None, exception: Optional[Exception] = None)

Raised when sams.auth.basic authentication is used without any API keys defined

app_code: str = '02006'
description: str = 'No API keys defined in the config'
http_code: int = 501
log_exception: bool = True