errors

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeyNotFound = NewTerminalError(fmt.Errorf("key not found"), 404)
)

Functions

func ErrorFromFailure

func ErrorFromFailure(failure *protocol.Failure) error

func NewTerminalError

func NewTerminalError(err error, code ...Code) error

Types

type Code

type Code uint16
const (
	ErrJournalMismatch   Code = 570
	ErrProtocolViolation Code = 571
)

type CodeError

type CodeError struct {
	Code  Code
	Inner error
}

func (*CodeError) Error

func (e *CodeError) Error() string

func (*CodeError) Unwrap

func (e *CodeError) Unwrap() error

type TerminalError

type TerminalError struct {
	Inner error
}

func (*TerminalError) Error

func (e *TerminalError) Error() string

func (*TerminalError) Unwrap

func (e *TerminalError) Unwrap() error

Jump to

Keyboard shortcuts

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