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.
Click to show internal directories.
Click to hide internal directories.