ierrors

package
v3.24.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	StatusCode    int
	Message       string
	PublicMessage string
	Unexpected    bool
	// contains filtered or unexported fields
}

func New

func New(status int, msg string, pub string) *Error

func NewUnexpected

func NewUnexpected(msg string, skip int) *Error

func Wrap

func Wrap(err error, skip int) *Error

func WrapWithPrefix

func WrapWithPrefix(err error, skip int, prefix string) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) FormatStack

func (e *Error) FormatStack() string

func (*Error) StackTrace

func (e *Error) StackTrace() []uintptr

Jump to

Keyboard shortcuts

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