Skip to content

Custom exceptions

Custom exceptions

Some custom excetions.

Functions:

Name Description
RepositoryAccessException

Exception raised when the external repository is not accessible or does not exist.

RepositoryAccessException

Bases: Exception

Exception raised when the external repository is not accessible or does not exist.

Source code in app/dcsp/app/functions/custom_exceptions.py
10
11
12
13
14
15
16
class RepositoryAccessException(Exception):
    """Exception raised when the external repository is not accessible or does not exist."""

    def __init__(self, repo_url: str) -> None:
        super().__init__(
            f"The external repository '{repo_url}' does not exist or is not accessible with your credentials"
        )