Class DnnExceptionFilterAttribute
Automatically handles WebAPI exceptions.
Inheritance
System.Object
DnnExceptionFilterAttribute
Namespace: DotNetNuke.Web.Api
Assembly: DotNetNuke.Web.dll
Syntax
public class DnnExceptionFilterAttribute : ExceptionFilterAttribute
Properties
| Improve this Doc View SourceLocalResourceFile
Gets or sets the resource file used to localize the exception messages.
Declaration
public string LocalResourceFile { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MessageKey
Gets or sets the message key for exception localization. ie: "controller_action.Error".
Declaration
public string MessageKey { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceOnException(HttpActionExecutedContext)
Automatically handles WebAPI exceptions.
Declaration
public override void OnException(HttpActionExecutedContext actionExecutedContext)
Parameters
Type | Name | Description |
---|---|---|
HttpActionExecutedContext | actionExecutedContext |