Skip to content

Exceptions

Module defining validation and unsolvable error conditions.

ValidationError

Bases: ValueError

Raised when a cash flow profile or input is invalid.

Source code in curo/exceptions.py
5
6
7
8
9
class ValidationError(ValueError):
    """
    Raised when a cash flow profile or input is invalid.
    """
    pass

UnsolvableError

Bases: RuntimeError

Raised when a numerical solver fails to converge on a solution.

Source code in curo/exceptions.py
11
12
13
14
15
class UnsolvableError(RuntimeError):
    """
    Raised when a numerical solver fails to converge on a solution.
    """
    pass