Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Property: Func<HttpRequest, Exception, HttpResponse> ErrorHandler

Declaration

Func<HttpRequest, Exception, HttpResponse> ErrorHandler

Summary

Specifies a request handler that is invoked whenever HttpServer.Handler throws an exception.

Remarks

If null, a default handler will be used. This default handler is also used if the error handler returns null or throws an exception. The default error handler will use HTTP status 500 except if the HttpServer.Handler threw an HttpException, in which case the exception's HTTP status is used instead.