package
0.0.0-20191119134328-9ff59ee4c896
Repository: https://github.com/dictybase/apihelpers.git
Documentation: pkg.go.dev
# Functions
JSONAPIError generate JSONAPI formatted http error from an error object.
# Variables
ErrAuthentication represents the absence of valid authentication credentials.
ErrDatabaseQuery represents database query related errors.
ErrFilterParam represents any error with invalid filter query paramter.
HTTPError represents generic http errors.
ErrIncludeParam represents any error with invalid include query parameter.
ErrJSONEncoding represents any json encoding error.
ErrJWTToken represents errors with jwt token.
ErrMessagingPub represents error in publish subscribe messaging.
ErrMessagingReply represents error in request reply messaging.
ErrMessagingReq represents error in request reply messaging.
ErrMessagingSub represents error in publish subscribe messaging.
ErrMethodNotAllowed represents error with unallowed HTTP method.
ErrNotAcceptable represents any error with wrong or inappropriate http Accept header.
ErrNotFound represents the absence of an HTTP resource.
ErrOuthExchange represents error in exchanging code for token with oauth server.
ErrQueryParam represents any error with http query parameters.
ErrReqContext represents error in extracting context value from http request.
ErrSparseFieldSets represents any error with invalid sparse fieldsets query parameter.
ErrStructMarshal represents any error with marshalling structure.
ErrUnsupportedMedia represents any error with unsupported media type in http header.
ErrUserRetrieval represents error in retrieving user information from oauth provider.
# Structs
Error can be used for all kind of application errors e.g.
ErrorLinks is used to provide an About URL that leads to further details about the particular occurrence of the problem.
ErrorSource is used to provide references to the source of an error.
HTTPError is used for errors.