errors

package
v0.0.0-...-44f814d Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DEEP = 2

Variables

This section is empty.

Functions

func StackTrace

func StackTrace(e CustomError) string

Types

type CustomError

type CustomError struct {
	Kind reflect.Type
	// contains filtered or unexported fields
}

func New

func New(msg string) CustomError

func (*CustomError) As

func (e *CustomError) As(err error, target any) bool

func (*CustomError) Error

func (e *CustomError) Error() string

func (*CustomError) Is

func (e *CustomError) Is(target error) bool

func (*CustomError) StackTrace

func (e *CustomError) StackTrace() string

func (*CustomError) Unwrap

func (e *CustomError) Unwrap() error

Jump to

Keyboard shortcuts

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