src/packages/EmbedIO/WebServerExtensions-ExceptionHandliers.cs
/// <summary>
/// Sets the unhandled exception handler on an <see cref="IWebServer" />.
/// </summary>
/// <typeparam name="TWebServer">The type of the web server.</typeparam>
/// <param name="this">The <typeparamref name="TWebServer" /> on which this method is called.</param>
/// <param name="handler">The unhandled exception handler.</param>
/// <returns><paramref name="this"/> with the <see cref="IWebServer.OnUnhandledException">OnUnhandledException</see>
/// property set to <paramref name="handler" />.</returns>
/// <exception cref="NullReferenceException"><paramref name="this" /> is <see langword="null" />.</exception>
/// <exception cref="InvalidOperationException">The web server has already been started.</exception>
/// <exception cref="ArgumentNullException"><paramref name="handler" /> is <see langwrd="null" />.</exception>
/// <seealso cref="IWebServer.OnUnhandledException" />
/// <seealso cref="ExceptionHandler" />
Sets the unhandled exception handler on an .
Sets the unhandled exception handler on an .
public static TWebServer HandleUnhandledException<TWebServer>(this TWebServer @this, ExceptionHandlerCallback handler)
            where TWebServer : IWebServer
        {
            @this.OnUnhandledException = handler;
            return @this;
        }
public static TWebServer HandleUnhandledException < TWebServer > ( this TWebServer @this , ExceptionHandlerCallback handler ) where TWebServer : IWebServer { @this . OnUnhandledException = handler ; return @this ; }
Sets the unhandled exception handler on an .
Sets the unhandled exception handler on an .
with the OnUnhandledException.
with the OnUnhandledException .
None
The web server has already been started.
The web server has already been started .
None
TWebServer
this
handler
ExceptionHandlerCallback
The unhandled exception handler.
The unhandled exception handler .
this
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