errorUtils

package
v0.0.0-...-dc7611c Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErrMessages

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

CheckErrMessages check for specific messages contains in the error

func ErrorsWithStack

func ErrorsWithStack(err error) string

ErrorsWithStack returns a string contains grpc_errors messages in the stack with its stack trace levels for given error

func ErrorsWithoutStack

func ErrorsWithoutStack(err error, format bool) string

ErrorsWithoutStack just returns error messages without its callstack

func HandlePanic

func HandlePanic()

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 StackTrace

func StackTrace(err error) string

StackTrace returns all stack traces with a string contains just stack trace levels for the given error

Types

This section is empty.

Jump to

Keyboard shortcuts

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