Source code for multiversx_sdk.core.errors

from typing import Any


[docs] class BadPubkeyLengthError(Exception): def __init__(self, actual: int, expected: int) -> None: super().__init__(f"Bad pubkey length: actual = {actual}, expected = {expected}")
[docs] class BadAddressError(Exception): def __init__(self, address: Any) -> None: super().__init__(f"Bad address: {address}")
[docs] class NotEnoughGasError(Exception): def __init__(self, gas_limit: int) -> None: super().__init__(f"Not enough gas provided: {gas_limit}")
[docs] class BadUsageError(Exception): def __init__(self, message: str) -> None: super().__init__(message)
[docs] class InvalidTokenIdentifierError(Exception): def __init__(self, message: str) -> None: super().__init__(message)
[docs] class ParseTransactionOnNetworkError(Exception): def __init__(self, message: str) -> None: super().__init__(message)