problems

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 4

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 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