func OnError(onErr func(rw http.ResponseWriter, r *http.Request, err error)) func(server *Server) {
	return func(server *Server) {
		server.OnError = onErr
	}
}
// OnError is an option to customize error handling in Server.
OnError is an option to customize error handling in Server.
// OnError is an option to customize error handling in Server .
func OnError(onErr func(rw http.ResponseWriter, r *http.Request, err error)) func(server *Server) {
	return func(server *Server) {
		server.OnError = onErr
	}
}
func OnError ( onErr func ( rw http . ResponseWriter , r * http . Request , err error ) ) func ( server * Server ) { return func ( server * Server ) { server . OnError = onErr } }
OnError is an option to customize error handling in Server.
OnError is an option to customize error handling in Server .