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

Function NewServiceException

pkg/error/error.go:214–221  ·  view source on GitHub ↗

NewServiceException xxx

(cause string, lasterr error)

Source from the content-addressed store, hash-verified

212
213// NewServiceException xxx
214func NewServiceException(cause string, lasterr error) FinalError {
215 return NewGenericException(BasicError{
216 Code: ServiceException,
217 Cause: cause,
218 Message: "Service encountered an internal error",
219 Status: http.StatusInternalServerError,
220 }, lasterr)
221}
222
223// NewUnrecognizedClientException creates a UnrecognizedClientException
224// HTTP status code is StatusForbidden (403)

Callers 1

GenericKunFinalErrorFunction · 0.85

Calls 1

NewGenericExceptionFunction · 0.85

Tested by

no test coverage detected