errors

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 5 Imported by: 1

README

error

Go error Package

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Message  string
	Cause    error
	File     string `json:"file,omitempty"`
	Line     int    `json:"line,omitempty"`
	Function string `json:"function,omitempty"`
}

func Is

func Is(err error) (e *Error, ok bool)

func New

func New(text string) *Error

func Newf

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

func Wrap

func Wrap(err error, text string) *Error

func Wrapf

func Wrapf(err error, format string, args ...interface{}) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) Wrap

func (e *Error) Wrap(err error)

Jump to

Keyboard shortcuts

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