Island: Add monkey_island.cc.repository.RemovalError

This commit is contained in:
Mike Salvatore 2022-06-21 13:22:29 -04:00
parent 63404c7bed
commit cd1481e4fe
2 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,4 @@
from .errors import RetrievalError, StorageError
from .errors import RemovalError, RetrievalError, StorageError
from .file_storage import FileNotFoundError, IFileRepository, LocalStorageFileRepository
from .i_agent_binary_repository import IAgentBinaryRepository
from .agent_binary_repository import AgentBinaryRepository

View File

@ -1,3 +1,11 @@
class RemovalError(RuntimeError):
"""
Raised when a repository encounters an error while attempting to remove data.
"""
pass
class RetrievalError(RuntimeError):
"""
Raised when a repository encounters an error while attempting to retrieve data.