error

package
v3.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LedgerError

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

LedgerError represents the errors fromo Ledger. It implements the Error interface.

func NewLedgerError

func NewLedgerError(statusCode statuscode.StatusCode, message string) LedgerError

NewLedgerError creates the ledger error instance.

func (LedgerError) Error

func (e LedgerError) Error() string

Error just returns the error message.

func (LedgerError) StatusCode

func (e LedgerError) StatusCode() statuscode.StatusCode

StatusCode returns the status code that represents the type of errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL