Skip to main content

LedgerException

sealed class LedgerException : Exception

Error returned when communicating with a Ledger device fails.

Inheritors​

UserRefused
DeviceLocked
DeviceNotReady
DeviceNotFound
AppNotFound
BlindSigningDisabled
KeyMismatch
Other

Types​

NameSummary
AppNotFoundclass AppNotFound(message: String) : LedgerException
The IOTA app is not installed on the device.
BlindSigningDisabledclass BlindSigningDisabled(message: String) : LedgerException
The IOTA app cannot clear-sign the transaction, and blind signing is disabled in its settings.
DeviceLockedclass DeviceLocked(message: String) : LedgerException
The device is locked.
DeviceNotFoundclass DeviceNotFound(message: String) : LedgerException
No Ledger device is connected.
DeviceNotReadyclass DeviceNotReady(message: String) : LedgerException
The device runs another app than the IOTA app.
ErrorHandlerobject ErrorHandler : UniffiRustCallStatusErrorHandler<LedgerException>
KeyMismatchclass KeyMismatch(message: String) : LedgerException
The device returns a different key for the signer's derivation path than when the signer was created, because another device is connected or the device was unlocked with a different seed or passphrase.
Otherclass Other(message: String) : LedgerException
Any other failure.
UserRefusedclass UserRefused(message: String) : LedgerException
The user rejected the request on the device.

Properties​

NameSummary
causeopen val cause: Throwable?
messageopen val message: String?

AppNotFound​

class AppNotFound(message: String) : LedgerException

The IOTA app is not installed on the device.

Constructors​

AppNotFoundconstructor(message: String)

Properties​

NameSummary
causeopen val cause: Throwable?
messageopen val message: String?

BlindSigningDisabled​

class BlindSigningDisabled(message: String) : LedgerException

The IOTA app cannot clear-sign the transaction, and blind signing is disabled in its settings.

Constructors​

BlindSigningDisabledconstructor(message: String)

Properties​

NameSummary
causeopen val cause: Throwable?
messageopen val message: String?

DeviceLocked​

class DeviceLocked(message: String) : LedgerException

The device is locked.

Constructors​

DeviceLockedconstructor(message: String)

Properties​

NameSummary
causeopen val cause: Throwable?
messageopen val message: String?

DeviceNotFound​

class DeviceNotFound(message: String) : LedgerException

No Ledger device is connected.

Constructors​

DeviceNotFoundconstructor(message: String)

Properties​

NameSummary
causeopen val cause: Throwable?
messageopen val message: String?

DeviceNotReady​

class DeviceNotReady(message: String) : LedgerException

The device runs another app than the IOTA app.

Constructors​

DeviceNotReadyconstructor(message: String)

Properties​

NameSummary
causeopen val cause: Throwable?
messageopen val message: String?

ErrorHandler​

object ErrorHandler : UniffiRustCallStatusErrorHandler<LedgerException>

Functions​

NameSummary
liftopen override fun lift(error_buf: RustBuffer.ByValue): LedgerException

KeyMismatch​

class KeyMismatch(message: String) : LedgerException

The device returns a different key for the signer's derivation path than when the signer was created, because another device is connected or the device was unlocked with a different seed or passphrase.

Constructors​

KeyMismatchconstructor(message: String)

Properties​

NameSummary
causeopen val cause: Throwable?
messageopen val message: String?

Other​

class Other(message: String) : LedgerException

Any other failure.

Constructors​

Otherconstructor(message: String)

Properties​

NameSummary
causeopen val cause: Throwable?
messageopen val message: String?

UserRefused​

class UserRefused(message: String) : LedgerException

The user rejected the request on the device.

Constructors​

UserRefusedconstructor(message: String)

Properties​

NameSummary
causeopen val cause: Throwable?
messageopen val message: String?