MCPcopy Create free account
hub / github.com/PuerkitoBio/fetchbot / HandleErrors

Method HandleErrors

handler.go:115–117  ·  view source on GitHub ↗

HandleErrors registers a Handler for any error that doesn't have a specific Handler.

(h Handler)

Source from the content-addressed store, hash-verified

113// HandleErrors registers a Handler for any error that doesn't have a specific
114// Handler.
115func (mux *Mux) HandleErrors(h Handler) {
116 mux.HandleError(nil, h)
117}
118
119// Response initializes an entry for a Response Handler based on various criteria.
120// The Response Handler is not registered until Handle is called.

Callers 2

TestMuxFunction · 0.95
mainFunction · 0.95

Calls 1

HandleErrorMethod · 0.95

Tested by 1

TestMuxFunction · 0.76