errors

package
v0.0.0-...-1a88b7f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyArgError

func EmptyArgError(name string) error

EmptyArgError creates a new HTTPError instance with "'name' cannot be empty"

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

Directories

Path Synopsis
http
echo
package echo
package echo

Jump to

Keyboard shortcuts

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