Skip to main content

LedgerError

LedgerError​

enum LedgerError

Error returned when communicating with a Ledger device fails.

LedgerError.AppNotFound(message:)​

case AppNotFound(message: String)

The IOTA app is not installed on the device.

LedgerError.BlindSigningDisabled(message:)​

case BlindSigningDisabled(message: String)

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

LedgerError.DeviceLocked(message:)​

case DeviceLocked(message: String)

The device is locked.

LedgerError.DeviceNotFound(message:)​

case DeviceNotFound(message: String)

No Ledger device is connected.

LedgerError.DeviceNotReady(message:)​

case DeviceNotReady(message: String)

The device runs another app than the IOTA app.

LedgerError.KeyMismatch(message:)​

case KeyMismatch(message: String)

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.

LedgerError.Other(message:)​

case Other(message: String)

Any other failure.

LedgerError.UserRefused(message:)​

case UserRefused(message: String)

The user rejected the request on the device.

errorDescription​

var errorDescription: String? { get }

A localized message describing what error occurred.

failureReason​

var failureReason: String? { get }

A localized message describing the reason for the failure.

helpAnchor​

var helpAnchor: String? { get }

A localized message providing "help" text if the user requests help.

localizedDescription​

var localizedDescription: String { get }

Retrieve the localized description for this error.

recoverySuggestion​

var recoverySuggestion: String? { get }

A localized message describing how one might recover from the failure.

!=(_:_:)​

static func != (lhs: Self, rhs: Self) -> Bool

Returns a Boolean value indicating whether two values are not equal.

Inequality is the inverse of equality. For any values a and b, a != b implies that a == b is false.

This is the default implementation of the not-equal-to operator (!=) for any type that conforms to Equatable.

  • Parameters:
    • lhs: A value to compare.
    • rhs: Another value to compare.