ServiceExceptionFilterAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.ExceptionFilterAttributeServiceExceptionFilterAttribute
- 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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET