ServiceExceptionFilterAttribute Class

Definition

Provides a default System.Web.Http.Filters.ExceptionFilterAttribute which catches unhandled exceptions occurring in the filter pipeline and logs them.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false)]
public sealed class ServiceExceptionFilterAttribute : System.Web.Http.Filters.ExceptionFilterAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false)>]
type ServiceExceptionFilterAttribute = class
    inherit ExceptionFilterAttribute
Public NotInheritable Class ServiceExceptionFilterAttribute
Inherits ExceptionFilterAttribute
Inheritance
System.Web.Http.Filters.ExceptionFilterAttribute
ServiceExceptionFilterAttribute
Attributes

Constructors

ServiceExceptionFilterAttribute()

Methods

OnException(HttpActionExecutedContext)

Logs the unhandled exception using LogCategories which makes it show up in the application log unless the application has been configured to not log such events.

Applies to