kleverr

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 4 Imported by: 2

README

kleverr

Simple golang errors wrapper to add stack traces

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(m string) error

func New1

func New1[X any](m string) (x X, serr error)

func New1f

func New1f[X any](m string, args ...any) (x X, serr error)

func New2

func New2[X any, Y any](m string) (x X, y Y, serr error)

func New2f

func New2f[X any, Y any](m string, args ...any) (x X, y Y, serr error)

func New3

func New3[X any, Y any, Z any](m string) (x X, y Y, z Z, serr error)

func New3f

func New3f[X any, Y any, Z any](m string, args ...any) (x X, y Y, z Z, serr error)

func Newf

func Newf(m string, args ...any) error

func Ret

func Ret(err error) error

func Ret1

func Ret1[X any](err error) (x X, serr error)

func Ret2

func Ret2[X any, Y any](err error) (x X, y Y, serr error)

func Ret3

func Ret3[X any, Y any, Z any](err error) (x X, y Y, z Z, serr error)

Types

type StackError

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

func Get

func Get(err error) *StackError

func (*StackError) Error

func (e *StackError) Error() string

func (*StackError) Print

func (e *StackError) Print() string

func (*StackError) Unwrap

func (e *StackError) Unwrap() error

type StackFrame

type StackFrame struct {
	Func string
	File string
	Line int
}

Jump to

Keyboard shortcuts

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