Repository Object Errors¶
consortium.server.exceptions.object_exceptions.repository_object_exceptions
¶
RepositoryObjectError(message='', detail=None)
¶
Bases: BaseObjectError
Base exception for all errors that occur when operating on repository objects such as repository files and directories.
Attributes:
| Name | Type | Description |
|---|---|---|
code |
A stable machine-readable string identifying the specific error. |
|
message |
str
|
A human-readable description of what went wrong and, where possible, how to resolve it. |
detail |
dict[str, JsonValue] | None
|
Optional structured context about the error, or None when there is none. |
code = 'REPOSITORY_OBJECT_ERROR'
class-attribute
instance-attribute
¶
RepositoryResourceFileSystemError(operation, path, underlying_error)
¶
Bases: RepositoryObjectError
Raised when a filesystem operation on a repository resource fails.
code = 'REPOSITORY_RESOURCE_FILE_SYSTEM_ERROR'
class-attribute
instance-attribute
¶
RepositoryFileError(message='', detail=None)
¶
Bases: RepositoryObjectError
Base exception for all errors that occur when performing operations on a repository file.
code = 'REPOSITORY_FILE_ERROR'
class-attribute
instance-attribute
¶
RepositoryFileAlreadyExistsError(repository_file_str)
¶
Bases: RepositoryFileError
Raised when attempting to perform an operation on a repository file that requires the file to not exist but the file already exists on disk.
code = 'REPOSITORY_FILE_ALREADY_EXISTS_ERROR'
class-attribute
instance-attribute
¶
RepositoryFileDoesNotExistError(repository_file_str)
¶
Bases: RepositoryFileError
Raised when attempting to perform an operation on a repository file that requires the file to exist but the file does not exist on disk.
code = 'REPOSITORY_FILE_DOES_NOT_EXIST_ERROR'
class-attribute
instance-attribute
¶
RepositoryDirectoryError(message='', detail=None)
¶
Bases: RepositoryObjectError
Base exception for all errors that occur when performing operations on a repository directory.
code = 'REPOSITORY_DIRECTORY_ERROR'
class-attribute
instance-attribute
¶
RepositoryDirectoryAlreadyExistsError(repository_directory_str)
¶
Bases: RepositoryDirectoryError
Raised when attempting to perform an operation on a repository directory that requires the directory to not exist but the directory already exists on disk.
code = 'REPOSITORY_DIRECTORY_ALREADY_EXISTS_ERROR'
class-attribute
instance-attribute
¶
RepositoryDirectoryDoesNotExistError(repository_directory_str)
¶
Bases: RepositoryDirectoryError
Raised when attempting to perform an operation on a repository directory that requires the directory to exist but the directory does not exist on disk.
code = 'REPOSITORY_DIRECTORY_DOES_NOT_EXIST_ERROR'
class-attribute
instance-attribute
¶
InvalidRepositoryDirectoryArchiveFileFormatError(archive_file_format)
¶
Bases: RepositoryDirectoryError
Raised when an unsupported archive file format is provided when attempting to create a repository directory from an archive file.