errors

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

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