ExceptionHandler Delegate

HttpServer.dll

We dont want to let the server to die due to exceptions thrown in worker threads. therefore we use this delegate to give you a change to handle uncaught exceptions.

Namespace:  HttpServer
Assembly:  HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public delegate void ExceptionHandler(
	Object source,
	Exception exception
)
Visual Basic (Declaration)
Public Delegate Sub ExceptionHandler ( _
	source As Object, _
	exception As Exception _
)
Visual C++
public delegate void ExceptionHandler(
	Object^ source, 
	Exception^ exception
)

Parameters

source
Type: System..::.Object
Class that the exception was thrown in.
exception
Type: System..::.Exception
Exception

Remarks

Server will throw a InternalServerException in release version if you dont handle this delegate.

See Also