Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidTokenError = errors.New("invalid token")
View Source
var MalformedTokenMessage = "the provided token does not meet the required format"
View Source
var MissingTokenMessage = "no Authorization token was provided"
Functions ¶
func IdentifyInternalError ¶ added in v1.6.0
Types ¶
type ErrorStructure ¶
type ErrorStructure struct {
Errors []IndividualError `json:"errors"`
}
func ErrorResponseBodyBuilder ¶
func ErrorResponseBodyBuilder(listOfErrors []IndividualError) (errorResponseBody ErrorStructure)
type IndividualError ¶
type IndividualError struct {
SpecificError string `json:"error"`
Message string `json:"message"`
Source Source `json:"source"`
}
func IndividualErrorBuilder ¶
func IndividualErrorBuilder(err error, message, sourceField, sourceParam string) (individualError IndividualError)
Click to show internal directories.
Click to hide internal directories.