errors

package
v0.0.0-...-6f43059 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPErrorF

func NewHTTPErrorF(code int, format string, a ...any) error

NewHTTPErrorF creates a new HTTPError instance from a format string.

func NewHTTPErrorWithInternal

func NewHTTPErrorWithInternal(internal error, code int, format string, a ...any) error

NewHTTPErrorWithInternal creates a new HTTPError instance from a format string and an error object.

func NilArgError

func NilArgError(name string) error

NilArgError creates a new HTTPError instance with "'name' cannot be nil" error message.

Types

type LocationError

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

func NewLocationError

func NewLocationError(err error) LocationError

func NewLocationErrorWithLevel

func NewLocationErrorWithLevel(err error, level uint) LocationError

func (LocationError) Error

func (e LocationError) Error() string

Jump to

Keyboard shortcuts

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