errorUtils

package
v0.0.0-...-6a52fcc Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErrorMessages

func CheckErrorMessages(err error, messages ...string) bool

CheckErrorMessages checks for specific messages contains in the error

func RootStackTrace

func RootStackTrace(err error) string

RootStackTrace returns root stack trace with a string contains just stack trace levels for the given error

func ValidationErrorHandler

func ValidationErrorHandler(err error) (map[string]string, error)

Types

type HandlerFunc

type HandlerFunc func() error

type WrappedFunc

type WrappedFunc func()

func HandlerErrorWrapper

func HandlerErrorWrapper(ctx context.Context, f HandlerFunc) WrappedFunc

Jump to

Keyboard shortcuts

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