errors

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CausedErrorTrue

func CausedErrorTrue(errP *error, cause error, format string, args ...interface{}) bool

Types

type Error

type Error struct {
	Code    int
	Message string
	Cause   *Error
	Line    int
	File    string
}

func BasicError

func BasicError(format string, args ...interface{}) Error

func CausedError

func CausedError(cause error, format string, args ...interface{}) Error

func (Error) Error

func (e Error) Error() string

func (Error) GetStack

func (e Error) GetStack(builder *strings.Builder)

type ErrorNotifier

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

func (ErrorNotifier) Notify

func (receiver ErrorNotifier) Notify(err error)

func (*ErrorNotifier) SetNotifier

func (receiver *ErrorNotifier) SetNotifier(ehandler func(err error))

Jump to

Keyboard shortcuts

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