Skip to main content

LedgerTransportError

type LedgerTransportError​

Error a `LedgerTransport` fails to exchange a command with.

type LedgerTransportError struct {
// contains filtered or unexported fields
}

func NewLedgerTransportErrorDeviceNotFound​

func NewLedgerTransportErrorDeviceNotFound() *LedgerTransportError

No Ledger device is connected.

func NewLedgerTransportErrorOther​

func NewLedgerTransportErrorOther(reason string) *LedgerTransportError

Any other failure.

func (*LedgerTransportError) AsError​

func (err *LedgerTransportError) AsError() error

Convenience method to turn *LedgerTransportError into error Avoiding treating nil pointer as non nil error interface

func (LedgerTransportError) Error​

func (err LedgerTransportError) Error() string

func (LedgerTransportError) Unwrap​

func (err LedgerTransportError) Unwrap() error