derrors

package
v0.1.40 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, a ...any) *errors.Error

func LogErr

func LogErr(logger dlog.Logger, err error)

func New

func New(msg string) *errors.Error

Types

type ExitError

type ExitError struct {
	Err  error
	Code int
}

func NewExitError

func NewExitError(code int, err error) *ExitError

func (*ExitError) Error

func (err *ExitError) Error() string

func (*ExitError) Unwrap

func (err *ExitError) Unwrap() error

type StrError

type StrError string

func (StrError) Error

func (se StrError) Error() string

Jump to

Keyboard shortcuts

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