errors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoMethod = ErrMsg(http.StatusMethodNotAllowed, "Method Not Allowed")
View Source
var NoRoute = ErrMsg(http.StatusNotFound, "Not Found")

Functions

This section is empty.

Types

type Error

type Error struct {
	Code int
	Msg  string
	// contains filtered or unexported fields
}

func Err

func Err(code int, msg string, cause error) *Error

func ErrMsg

func ErrMsg(code int, msg string) *Error

func ErrWith

func ErrWith(err Error, cause error) *Error

func (*Error) Cause

func (e *Error) Cause() error

func (*Error) CauseBy

func (e *Error) CauseBy(cause error) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap added in v0.1.0

func (e *Error) Unwrap() error

Jump to

Keyboard shortcuts

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