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

Function NewRequestTimeoutException

pkg/error/error.go:235–242  ·  view source on GitHub ↗

NewRequestTimeoutException xxx

(cause string, timeout time.Duration, lasterr error)

Source from the content-addressed store, hash-verified

233
234// NewRequestTimeoutException xxx
235func NewRequestTimeoutException(cause string, timeout time.Duration, lasterr error) FinalError {
236 return NewGenericException(BasicError{
237 Code: RequestTimeoutException,
238 Cause: cause,
239 Message: fmt.Sprintf("Task timed out after %.2f seconds", timeout.Seconds()),
240 Status: http.StatusOK,
241 }, lasterr)
242}
243
244// NewNotImplementedException xxx
245func NewNotImplementedException() FinalError {

Callers

nothing calls this directly

Calls 1

NewGenericExceptionFunction · 0.85

Tested by

no test coverage detected