MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / NewInvalidRequestContentException

Function NewInvalidRequestContentException

pkg/error/error.go:204–211  ·  view source on GitHub ↗

NewInvalidRequestContentException xxx

(cause string, lasterr error)

Source from the content-addressed store, hash-verified

202
203// NewInvalidRequestContentException xxx
204func NewInvalidRequestContentException(cause string, lasterr error) FinalError {
205 return NewGenericException(BasicError{
206 Code: InvalidRequestContentException,
207 Cause: cause,
208 Message: "The request body could not be parsed as JSON",
209 Status: http.StatusBadRequest,
210 }, lasterr)
211}
212
213// NewServiceException xxx
214func NewServiceException(cause string, lasterr error) FinalError {

Callers

nothing calls this directly

Calls 1

NewGenericExceptionFunction · 0.85

Tested by

no test coverage detected