ReturnExceptionsInJsonAttribute
Assembly: ServiceStack.dll
View Source
Declaration
public class ReturnExceptionsInJsonAttribute : ResponseFilterAttribute, _Attribute, IHasResponseFilter, IResponseFilterBase
Inherited Properties
ApplyTo
View Source
Declaration
public ApplyTo ApplyTo { get; set; }
Priority
View Source
Declaration
public int Priority { get; set; }
Methods
Execute(IRequest, IResponse, Object)
View Source
Declaration
public override void Execute(IRequest req, IResponse res, object responseDto)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
ServiceStack.Web.IResponse | res |
System.Object | responseDto |
Inherited Methods
Copy()
Create a ShallowCopy of this instance.
View Source
Declaration
public virtual IResponseFilterBase Copy()
Returns
ServiceStack.Web.IResponseFilterBase
Execute(IRequest, IResponse, Object)
This method is only executed if the HTTP method matches the ServiceStack.ResponseFilterAttribute.ApplyTo property.
View Source
Declaration
public abstract void Execute(IRequest req, IResponse res, object responseDto)
Parameters
Type | Name | Description |
---|---|---|
ServiceStack.Web.IRequest | req | The http request wrapper |
| | ServiceStack.Web.IResponse | res | The http response wrapper
|
| System.Object
| responseDto | The response DTO
|
ResponseFilter(IRequest, IResponse, Object)
View Source
Declaration
public void ResponseFilter(IRequest req, IResponse res, object response)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
ServiceStack.Web.IResponse | res |
System.Object | response |
Implements
System.Runtime.InteropServices._Attribute
- ServiceStack.Web.IHasResponseFilter
- ServiceStack.Web.IResponseFilterBase