MCPcopy Create free account
hub / github.com/corestoreio/pkg / WithErrorHandler

Function WithErrorHandler

net/signed/options_generic.go:65–71  ·  view source on GitHub ↗

WithErrorHandler adds a custom error handler. Gets called in the http.Handler after the scope can be extracted from the context.Context and the configuration has been found and is valid. The default error handler prints the error to the user and returns a http.StatusServiceUnavailable. The variadic

(eh mw.ErrorHandler, scopeIDs ...scope.TypeID)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

findScopedConfigMethod · 0.45
updateScopedConfigMethod · 0.45

Tested by

no test coverage detected