errx

package
v0.0.0-...-82274f7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 7 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxStackPrintDepth = 10

Functions

func BadReq

func BadReq(msg string, args ...interface{}) *echo.HTTPError

func BadReqX

func BadReqX(e error, msg string, args ...interface{}) *echo.HTTPError

func Errf

func Errf(inner error, msg string, args ...interface{}) error

func Errfx

func Errfx(inner error, code, msg string, args ...interface{}) error

func Fmt

func Fmt(msg string, args ...interface{}) error

func IntSrvErr

func IntSrvErr(e error) *echo.HTTPError

func IntSrvErrf

func IntSrvErrf(
	e error, msg string, args ...interface{}) *echo.HTTPError

func New

func New(code, msg string) error

func PrintSomeStack

func PrintSomeStack(err error)

func StackArray

func StackArray(err error) []string

func Str

func Str(err error) string

func Todo

func Todo(emsg string) error

func Wrap

func Wrap(inner error) error

Types

type Error

type Error struct {
	Err  error  `json:"err"`
	Code string `json:"code"`
	Msg  string `json:"msg"`
	File string `json:"file"`
	Line int    `json:"line"`
}

func (*Error) Error

func (ex *Error) Error() string

func (*Error) String

func (ex *Error) String() string

func (*Error) Unwrap

func (ex *Error) Unwrap() error

Jump to

Keyboard shortcuts

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