src/packages/EmbedIO/WebModuleExtensions-ExceptionHandlers.cs
/// <summary>
/// Sets the HTTP exception handler on an <see cref="IWebModule" />.
/// </summary>
/// <typeparam name="TWebModule">The type of the web server.</typeparam>
/// <param name="this">The <typeparamref name="TWebModule" /> on which this method is called.</param>
/// <param name="handler">The HTTP exception handler.</param>
/// <returns><paramref name="this"/> with the <see cref="IWebModule.OnHttpException">OnHttpException</see>
/// property set to <paramref name="handler" />.</returns>
/// <exception cref="NullReferenceException"><paramref name="this" /> is <see langword="null" />.</exception>
/// <exception cref="InvalidOperationException">The module's configuration is locked.</exception>
/// <seealso cref="IWebModule.OnHttpException" />
/// <seealso cref="HttpExceptionHandler" />
Sets the HTTP exception handler on an .
Sets the HTTP exception handler on an .
public static TWebModule HandleHttpException<TWebModule>(this TWebModule @this, HttpExceptionHandlerCallback handler)
            where TWebModule : IWebModule
        {
            @this.OnHttpException = handler;
            return @this;
        }
public static TWebModule HandleHttpException < TWebModule > ( this TWebModule @this , HttpExceptionHandlerCallback handler ) where TWebModule : IWebModule { @this . OnHttpException = handler ; return @this ; }
Sets the HTTP exception handler on an .
Sets the HTTP exception handler on an .
with the OnHttpException.
with the OnHttpException .
None
The module's configuration is locked.
The module ' s configuration is locked .
TWebModule
this
<not_specific>
handler
HttpExceptionHandlerCallback
The HTTP exception handler.
The HTTP exception handler .
this
<not_specific>
The  on which this method is called.
The on which this method is called .
typeparam
The type of the web server.
The type of the web server .
seealso
None
seealso
None