problems

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(err error) []*jsonapi.ErrorObject

func Conflict

func Conflict() *jsonapi.ErrorObject

func Forbidden

func Forbidden() *jsonapi.ErrorObject

func InternalError

func InternalError() *jsonapi.ErrorObject

func NotAllowed

func NotAllowed(errs ...error) *jsonapi.ErrorObject

NotAllowed will try to guess details of error and populate problem accordingly.

func NotFound

func NotFound() *jsonapi.ErrorObject

func RequestTimeout added in v1.7.2

func RequestTimeout() *jsonapi.ErrorObject

func TooManyRequests

func TooManyRequests() *jsonapi.ErrorObject

func Unauthorized

func Unauthorized() *jsonapi.ErrorObject

Types

type BadRequester

type BadRequester interface {
	BadRequest() map[string]error
}

BadRequester is an error that indicates bad request.

Jump to

Keyboard shortcuts

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