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

Function NewUnrecognizedClientException

pkg/error/error.go:225–232  ·  view source on GitHub ↗

NewUnrecognizedClientException creates a UnrecognizedClientException HTTP status code is StatusForbidden (403)

(cause string, lasterr error)

Source from the content-addressed store, hash-verified

223// NewUnrecognizedClientException creates a UnrecognizedClientException
224// HTTP status code is StatusForbidden (403)
225func NewUnrecognizedClientException(cause string, lasterr error) FinalError {
226 return NewGenericException(BasicError{
227 Code: UnrecognizedClientException,
228 Cause: cause,
229 Message: "Access Denied",
230 Status: http.StatusForbidden,
231 }, lasterr)
232}
233
234// NewRequestTimeoutException xxx
235func NewRequestTimeoutException(cause string, timeout time.Duration, lasterr error) FinalError {

Callers

nothing calls this directly

Calls 1

NewGenericExceptionFunction · 0.85

Tested by

no test coverage detected