Skip to main content

eqerrorhttpactionresult-class

Represents a special kind of System.Web.Http.IHttpActionResult which allows to build an BadRequest (status code 400) response with error message Implements the .

public class Korzh.EasyQuery.AspNet.EqErrorHttpActionResult
: IHttpActionResult

Assembly: Korzh.EasyQuery.AspNet4.dll

Constructors​

NameTypeDescription
EqErrorHttpActionResult(string message, HttpRequestMessage request)voidInitializes a new instance of the Korzh.EasyQuery.AspNet.EqErrorHttpActionResult class.
EqErrorHttpActionResult(string message, string stackTrace, HttpRequestMessage request)voidInitializes a new instance of the Korzh.EasyQuery.AspNet.EqErrorHttpActionResult class.

Fields​

NameTypeDescription
MessagestringThe error message which should be added to the response body.
RequestHttpRequestMessageThe request message
StackTracestringThe error stack trace which should be added to the response body.

Methods​

NameTypeDescription
ExecuteAsync(CancellationToken cancellationToken)Task<HttpResponseMessage>Creates an System.Net.Http.HttpResponseMessage asynchronously.
WriteResponseAsync(Stream stream, HttpContent content, TransportContext context)TaskWrite the response as an asynchronous operation.