errors

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorFromFailure

func ErrorFromFailure(failure *protocol.Failure) error

func IsTerminalError added in v0.11.0

func IsTerminalError(err error) bool

func NewTerminalError

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

Types

type Code

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

func ErrorCode added in v0.11.0

func ErrorCode(err error) Code

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