errors

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, a ...any) error

Errorf creates a new error with formatted message and captures the caller's file and line number.

func ErrorfOneLine

func ErrorfOneLine(format string, a ...any) error

ErrorfOneLine creates a new error with formatted message and captures the caller's file and line number.

func LogError

func LogError(skip, depth int, msg string, args ...interface{})

func LogErrorOneLine

func LogErrorOneLine(skip int, msg string, args ...interface{})

func New

func New(text string) error

func Wrap

func Wrap(err error, text string) error

Types

type Error

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

func (*Error) Error

func (e *Error) Error() string

func (*Error) ErrorWithFrame

func (e *Error) ErrorWithFrame() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

Jump to

Keyboard shortcuts

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