Verified Commit 002b821e authored by David Runge's avatar David Runge
Browse files

Add a set of error classes

Add the Exception class `RepoManagementError` serving as a base, from
which `RepoManagementFileError` is derived, which serves as a general
Error class to signal problems with file interaction.
Add the Exception class `RepoManagementFileNotFoundError`, which is
derived from `RepoManagementFileError`.
Add `RepoManagementValidationError` which derives from
`RepoManagementError` and is raised on validation issues of file
parent 1dfe6f80
class RepoManagementError(Exception):
"""A class of Errors that is raised on issues with handling a repository database"""
class RepoManagementFileError(RepoManagementError):
"""An Error that is raised on issues with reading or writing files using repo_managment"""
class RepoManagementValidationError(RepoManagementError):
"""An Error that is raised on issues with validating files using repo_managment"""
class RepoManagementFileNotFoundError(RepoManagementFileError, FileNotFoundError):
"""An Error that is raised when a file can not be found"""
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment