custerr

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: CC0-1.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Type

func Type(err error) error

Types

type ErrChain

type ErrChain struct {
	Message string
	Cause   error
	Fields  map[string]interface{}
	Type    error
}

func (ErrChain) Error

func (err ErrChain) Error() string

func (ErrChain) SetField

func (err ErrChain) SetField(key string, value string) ErrChain

type InvalidError

type InvalidError struct {
	// contains filtered or unexported fields
}

func NewInvalidError

func NewInvalidError(msg string) *InvalidError

func NewInvalidErrorf

func NewInvalidErrorf(msg string, args ...interface{}) *InvalidError

func (*InvalidError) Error

func (ie *InvalidError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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