errors

package module
v0.0.0-...-c086221 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: Apache-2.0 Imports: 2 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadInput

func BadInput(details ...D) error

func Conflict

func Conflict(details ...D) error

func Forbidden

func Forbidden(details ...D) error

func FromHttpStatus

func FromHttpStatus(status int, details D) error

func GetHttpStatusCode

func GetHttpStatusCode(err error) int

func IsBadInput

func IsBadInput(err error) bool

func IsConflict

func IsConflict(err error) bool

func IsForbidden

func IsForbidden(err error) bool

func IsNotFound

func IsNotFound(err error) bool

func IsNotSupported

func IsNotSupported(err error) bool

func IsServiceUnavailable

func IsServiceUnavailable(err error) bool

func IsTimeout

func IsTimeout(err error) bool

func IsUnauthorized

func IsUnauthorized(err error) bool

func IsUnimplemented

func IsUnimplemented(err error) bool

func New

func New(details ...D) error

func NotFound

func NotFound(details ...D) error

func NotSupported

func NotSupported(details ...D) error

func ServiceUnavailable

func ServiceUnavailable(details ...D) error

func Timeout

func Timeout(details ...D) error

func Unauthorized

func Unauthorized(details ...D) error

func Unimplemented

func Unimplemented(details ...D) error

func Write

func Write(w io.Writer, err error) (int, error)

Types

type D

type D map[string]interface{}

D is a map that contains details

Jump to

Keyboard shortcuts

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