MCPcopy Create free account
hub / github.com/fnproject/fn / APIError

Interface APIError

api/models/error.go:228–231  ·  view source on GitHub ↗

APIError any error that implements this interface will return an API response with the provided status code and error message body

Source from the content-addressed store, hash-verified

226// APIError any error that implements this interface will return an API response
227// with the provided status code and error message body
228type APIError interface {
229 Code() int
230 error
231}
232
233type err struct {
234 code int

Callers 8

bindHandlersMethod · 0.95
RetryAllBackoffMethod · 0.65
HandleErrorResponseFunction · 0.65
GetAPIErrorCodeFunction · 0.65
NewFuncErrorFunction · 0.65
getTryMsgMethod · 0.65
isTooBusyFunction · 0.65

Implementers 3

errTooBigapi/server/server_options.go
errapi/models/error.go
ferrapi/models/error.go

Calls

no outgoing calls

Tested by

no test coverage detected