Share via


ExceptionServices.GetHandler Method

 

Namespace:   System.Web.Http.ExceptionHandling
Assembly:  System.Web.Http (in System.Web.Http.dll)

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static GetHandler(HttpConfiguration)

Gets an exception handler that calls the registered handler service, if any, and ensures exceptions do not accidentally propagate to the host.

System_CAPS_pubmethodSystem_CAPS_static 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

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

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