ExceptionFilterAttribute Class¶
Inheritance Hierarchy¶
System.Object
System.Attribute
Microsoft.AspNet.Mvc.ExceptionFilterAttribute
Syntax¶
public abstract class ExceptionFilterAttribute : Attribute, _Attribute, IAsyncExceptionFilter, IExceptionFilter, IOrderedFilter, IFilter
Properties¶
-
Order
()¶ Return type: System.Int32 public int Order { get; set; }
-
Methods¶
-
OnException
(Microsoft.AspNet.Mvc.ExceptionContext)¶ Arguments: - context (Microsoft.AspNet.Mvc.ExceptionContext) –
public virtual void OnException(ExceptionContext context)
-
OnExceptionAsync
(Microsoft.AspNet.Mvc.ExceptionContext)¶ Arguments: - context (Microsoft.AspNet.Mvc.ExceptionContext) –
Return type: System.Threading.Tasks.Task
public virtual Task OnExceptionAsync(ExceptionContext context)
-