ExceptionServices.GetHandler Method
Namespace: System.Web.Http.ExceptionHandling
Assembly: System.Web.Http (in System.Web.Http.dll)
Overload List
Name | Description | |
---|---|---|
![]() ![]() |
GetHandler(HttpConfiguration) | Gets an exception handler that calls the registered handler service, if any, and ensures exceptions do not accidentally propagate to the host. |
![]() ![]() |
GetHandler(ServicesContainer) | Gets an exception handler that calls the registered handler service, if any, and ensures exceptions do not accidentally propagate to the host. |
See Also
ExceptionServices Class
System.Web.Http.ExceptionHandling Namespace
Return to top
ExceptionServices.GetHandler Method (HttpConfiguration)
Gets an exception handler that calls the registered handler service, if any, and ensures exceptions do not accidentally propagate to the host.
Syntax
public static IExceptionHandler GetHandler(
HttpConfiguration configuration
)
public:
static IExceptionHandler^ GetHandler(
HttpConfiguration^ configuration
)
static member GetHandler :
configuration:HttpConfiguration -> IExceptionHandler
Public Shared Function GetHandler (
configuration As HttpConfiguration
) As IExceptionHandler
Parameters
configuration
Type: System.Web.Http.HttpConfigurationThe configuration.
Return Value
Type: System.Web.Http.ExceptionHandling.IExceptionHandler
An exception handler that calls any registered handler and ensures exceptions do not accidentally propagate to the host.
Return to top
ExceptionServices.GetHandler Method (ServicesContainer)
Gets an exception handler that calls the registered handler service, if any, and ensures exceptions do not accidentally propagate to the host.
Syntax
public static IExceptionHandler GetHandler(
ServicesContainer services
)
public:
static IExceptionHandler^ GetHandler(
ServicesContainer^ services
)
static member GetHandler :
services:ServicesContainer -> IExceptionHandler
Public Shared Function GetHandler (
services As ServicesContainer
) As IExceptionHandler
Parameters
services
Type: System.Web.Http.Controllers.ServicesContainerThe services container.
Return Value
Type: System.Web.Http.ExceptionHandling.IExceptionHandler
An exception handler that calls any registered handler and ensures exceptions do not accidentally propagate to the host.
Return to top