Share via


ExceptionServices Class

 

Creates exception services to call logging and handling from catch blocks.

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

Inheritance Hierarchy

System.Object
  System.Web.Http.ExceptionHandling.ExceptionServices

Syntax

public static class ExceptionServices
public ref class ExceptionServices abstract sealed 
[<AbstractClass>]
[<Sealed>]
type ExceptionServices = class end
Public NotInheritable Class ExceptionServices

Methods

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.

System_CAPS_pubmethodSystem_CAPS_static GetLogger(HttpConfiguration)

Gets an exception logger that calls all registered logger services.

System_CAPS_pubmethodSystem_CAPS_static GetLogger(ServicesContainer)

Gets an exception logger that calls all registered logger services.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Http.ExceptionHandling Namespace

Return to top