"""Custom Exceptions."""


class UITError(RuntimeError):
    pass


class DpRouteError(UITError):
    """
    A custom exception for DP_ROUTE class errors.

    When making calls through UIT, the SSH tunnels to the supercomputers are very flaky. Most of the time a few retries
    will suffice, but occasionally not. In certain cases, such as status updates, it is advantageous to ignore the
    errors, while in others it is best to just notify the users. Thus, we created this specific exception to identify
    this case.
    """
    def __init__(self, message):
        super().__init__(message)


class MaxRetriesError(UITError):
    """
    A custom exception for MaxRetries class errors.

    When making calls through UIT, the SSH tunnels to the supercomputers are very flaky. Most of the time a few retries
    will suffice, but occasionally not. In certain cases, such as status updates, it is advantageous to ignore the
    errors, while in others it is best to just notify the users. Thus, we created this specific exception to identify
    this case.
    """
    def __init__(self, message):
        super().__init__(message)

052fd6d54cf253256b64feb39f35c6a0653906c0
<mask token>


class MaxRetriesError(UITError):
    <mask token>

    def __init__(self, message):
        super().__init__(message)

<mask token>


class DpRouteError(UITError):
    <mask token>
    <mask token>


class MaxRetriesError(UITError):
    """
    A custom exception for MaxRetries class errors.

    When making calls through UIT, the SSH tunnels to the supercomputers are very flaky. Most of the time a few retries
    will suffice, but occasionally not. In certain cases, such as status updates, it is advantageous to ignore the
    errors, while in others it is best to just notify the users. Thus, we created this specific exception to identify
    this case.
    """

    def __init__(self, message):
        super().__init__(message)

<mask token>


class DpRouteError(UITError):
    """
    A custom exception for DP_ROUTE class errors.

    When making calls through UIT, the SSH tunnels to the supercomputers are very flaky. Most of the time a few retries
    will suffice, but occasionally not. In certain cases, such as status updates, it is advantageous to ignore the
    errors, while in others it is best to just notify the users. Thus, we created this specific exception to identify
    this case.
    """

    def __init__(self, message):
        super().__init__(message)


class MaxRetriesError(UITError):
    """
    A custom exception for MaxRetries class errors.

    When making calls through UIT, the SSH tunnels to the supercomputers are very flaky. Most of the time a few retries
    will suffice, but occasionally not. In certain cases, such as status updates, it is advantageous to ignore the
    errors, while in others it is best to just notify the users. Thus, we created this specific exception to identify
    this case.
    """

    def __init__(self, message):
        super().__init__(message)

<mask token>


class UITError(RuntimeError):
    pass


class DpRouteError(UITError):
    """
    A custom exception for DP_ROUTE class errors.

    When making calls through UIT, the SSH tunnels to the supercomputers are very flaky. Most of the time a few retries
    will suffice, but occasionally not. In certain cases, such as status updates, it is advantageous to ignore the
    errors, while in others it is best to just notify the users. Thus, we created this specific exception to identify
    this case.
    """

    def __init__(self, message):
        super().__init__(message)


class MaxRetriesError(UITError):
    """
    A custom exception for MaxRetries class errors.

    When making calls through UIT, the SSH tunnels to the supercomputers are very flaky. Most of the time a few retries
    will suffice, but occasionally not. In certain cases, such as status updates, it is advantageous to ignore the
    errors, while in others it is best to just notify the users. Thus, we created this specific exception to identify
    this case.
    """

    def __init__(self, message):
        super().__init__(message)

"""Custom Exceptions."""


class UITError(RuntimeError):
    pass


class DpRouteError(UITError):
    """
    A custom exception for DP_ROUTE class errors.

    When making calls through UIT, the SSH tunnels to the supercomputers are very flaky. Most of the time a few retries
    will suffice, but occasionally not. In certain cases, such as status updates, it is advantageous to ignore the
    errors, while in others it is best to just notify the users. Thus, we created this specific exception to identify
    this case.
    """
    def __init__(self, message):
        super().__init__(message)


class MaxRetriesError(UITError):
    """
    A custom exception for MaxRetries class errors.

    When making calls through UIT, the SSH tunnels to the supercomputers are very flaky. Most of the time a few retries
    will suffice, but occasionally not. In certain cases, such as status updates, it is advantageous to ignore the
    errors, while in others it is best to just notify the users. Thus, we created this specific exception to identify
    this case.
    """
    def __init__(self, message):
        super().__init__(message)
