Source code for multiversx_sdk.wallet.errors

from pathlib import Path


[docs] class UnknownCipherError(Exception): def __init__(self, name: str): super().__init__(f"Unknown cipher: {name}.")
[docs] class UnknownDerivationFunctionError(Exception): def __init__(self): super().__init__("Unknown key derivation function.")
[docs] class InvalidKeystoreFilePasswordError(Exception): def __init__(self): super().__init__("Provided keystore file password is invalid.")
[docs] class CannotSignError(Exception): def __init__(self) -> None: super().__init__("Cannot sign object.")
[docs] class InvalidMnemonicError(Exception): def __init__(self) -> None: super().__init__("Bad mnemonic")
[docs] class InvalidSecretKeyLengthError(Exception): def __init__(self) -> None: super().__init__("Bad length of secret key")
[docs] class InvalidPublicKeyLengthError(Exception): def __init__(self) -> None: super().__init__("Bad length of public key")
[docs] class LibraryNotFoundError(Exception): def __init__(self, path: Path) -> None: super().__init__(f"Library not found: {path}")
[docs] class UnsupportedOSError(Exception): def __init__(self, os_name: str) -> None: super().__init__(f"Unsupported OS: {os_name}")