Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ExceptionResult Class

 

Represents an action result that returns a InternalServerError response and performs content negotiation on an HttpError  based on an Exception.

Namespace:   System.Web.Http.Results
Assembly:  System.Web.Http (in System.Web.Http.dll)

System.Object
  System.Web.Http.Results.ExceptionResult

public class ExceptionResult : IHttpActionResult

NameDescription
System_CAPS_pubmethodExceptionResult(Exception, ApiController)

Initializes a new instance of the ExceptionResult class.

System_CAPS_pubmethodExceptionResult(Exception, Boolean, IContentNegotiator, HttpRequestMessage, IEnumerable<MediaTypeFormatter>)

Initializes a new instance of the ExceptionResult class.

NameDescription
System_CAPS_pubpropertyContentNegotiator

Gets the content negotiator to handle content negotiation.

System_CAPS_pubpropertyException

Gets the exception to include in the error.

System_CAPS_pubpropertyFormatters

Gets the formatters to use to negotiate and format the content.

System_CAPS_pubpropertyIncludeErrorDetail

Gets a value indicating whether the error should include exception messages.

System_CAPS_pubpropertyRequest

Gets the request message which led to this result.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExecuteAsync(CancellationToken)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: