2021-02-06 16:13:47 +01:00
|
|
|
class VersionTooLowError(Exception):
|
|
|
|
"""Raised when the session version doesn't match latest version."""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class SessionNotFoundError(Exception):
|
|
|
|
"""Raised when queried session is not found in memory."""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2021-08-06 18:29:01 +02:00
|
|
|
class InvalidFileFormatError(Exception):
|
2021-02-06 16:13:47 +01:00
|
|
|
"""Raised when the file format is invalid."""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2021-08-06 18:29:01 +02:00
|
|
|
class AccountCreationDataNotFound(Exception):
|
|
|
|
"""Raised when account creation data matching a specific task uuid is not found in the redis cache"""
|
2021-02-06 16:13:47 +01:00
|
|
|
pass
|
|
|
|
|
2021-03-04 17:47:13 +01:00
|
|
|
|
2021-08-06 18:29:01 +02:00
|
|
|
class MetadataNotFoundError(Exception):
|
2021-03-04 17:47:13 +01:00
|
|
|
"""Raised when metadata is expected but not available in cache."""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2021-08-06 18:29:01 +02:00
|
|
|
class UnsupportedMethodError(Exception):
|
2021-03-04 17:47:13 +01:00
|
|
|
"""Raised when the method passed to the make request function is unsupported."""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2021-08-06 18:29:01 +02:00
|
|
|
class CachedDataNotFoundError(Exception):
|
2021-03-04 17:47:13 +01:00
|
|
|
"""Raised when the method passed to the make request function is unsupported."""
|
|
|
|
pass
|
2021-04-09 15:00:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
class MetadataStoreError(Exception):
|
|
|
|
"""Raised when metadata storage fails"""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2021-05-01 16:14:20 +02:00
|
|
|
class SeppukuError(Exception):
|
|
|
|
"""Exception base class for all errors that should cause system shutdown"""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class InitializationError(Exception):
|
|
|
|
"""Exception raised when initialization state is insufficient to run component"""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2021-07-20 18:18:27 +02:00
|
|
|
class UnknownUssdRecipient(Exception):
|
|
|
|
"""Raised when a recipient of a transaction is not known to the ussd application."""
|
|
|
|
|
2021-08-06 18:29:01 +02:00
|
|
|
|
|
|
|
|