errors

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 2 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 {
	// contains filtered or unexported fields
}

func From

func From(v any, code ...int) *Error

func New

func New(message string, code ...int) (err *Error)

func Newf

func Newf(message string, v ...any) *Error

func WithStack added in v1.1.0

func WithStack(message string, code ...int) (err *Error)

func (Error) Code

func (x Error) Code() int

func (Error) Error

func (x Error) Error() string

func (Error) Stack

func (x Error) Stack() string

func (Error) String

func (x Error) String() string

Jump to

Keyboard shortcuts

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