()
| 396 | } |
| 397 | |
| 398 | func (opts HandlerOptions) errorOptions() ErrorOptions { |
| 399 | return ErrorOptions{ |
| 400 | OnError: opts.OnError, |
| 401 | } |
| 402 | } |
| 403 | |
| 404 | // ErrorHandlerFunc is called to present a error response. |
| 405 | type ErrorHandlerFunc func(http.ResponseWriter, *http.Request, HTTPError) |