Skip to content

Errors

Module defining custom exceptions for handling errors.

InvalidLPError

Bases: Exception

Error raised when no LP is found in a pool utxo, and LP is expected.

Source code in src/charli3_dendrite/dexs/core/errors.py
16
17
18
19
class InvalidLPError(Exception):
    """Error raised when no LP is found in a pool utxo, and LP is expected."""

    pass

InvalidPoolError

Bases: Exception

Error raised when a utxo has pool data, but it is formatted incorrectly.

Source code in src/charli3_dendrite/dexs/core/errors.py
10
11
12
13
class InvalidPoolError(Exception):
    """Error raised when a utxo has pool data, but it is formatted incorrectly."""

    pass

NoAssetsError

Bases: Exception

Error raised when no assets are in the pool, or it only contains lovelace.

Source code in src/charli3_dendrite/dexs/core/errors.py
22
23
24
25
class NoAssetsError(Exception):
    """Error raised when no assets are in the pool, or it only contains lovelace."""

    pass

NotAPoolError

Bases: Exception

Error raised when a utxo is supplied and it does not contain pool data.

Source code in src/charli3_dendrite/dexs/core/errors.py
4
5
6
7
class NotAPoolError(Exception):
    """Error raised when a utxo is supplied and it does not contain pool data."""

    pass