• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

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 Source

LocalResourceFile

Gets or sets the resource file used to localize the exception messages.

Declaration
public string LocalResourceFile { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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 Source

OnException(HttpActionExecutedContext)

Automatically handles WebAPI exceptions.

Declaration
public override void OnException(HttpActionExecutedContext actionExecutedContext)
Parameters
Type Name Description
HttpActionExecutedContext actionExecutedContext

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS