ExceptionResult ExceptionResult ExceptionResult ExceptionResult Class

Definition

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

public ref class ExceptionResult : Microsoft::AspNetCore::Mvc::ObjectResult
public class ExceptionResult : Microsoft.AspNetCore.Mvc.ObjectResult
type ExceptionResult = class
    inherit ObjectResult
Public Class ExceptionResult
Inherits ObjectResult
Inheritance

Constructors

ExceptionResult(Exception, Boolean) ExceptionResult(Exception, Boolean) ExceptionResult(Exception, Boolean) ExceptionResult(Exception, Boolean)

Initializes a new instance of the ExceptionResult class.

Properties

ContentTypes ContentTypes ContentTypes ContentTypes Inherited from ObjectResult
DeclaredType DeclaredType DeclaredType DeclaredType Inherited from ObjectResult
Exception Exception Exception Exception

Gets the exception to include in the error.

Formatters Formatters Formatters Formatters Inherited from ObjectResult
IncludeErrorDetail IncludeErrorDetail IncludeErrorDetail IncludeErrorDetail

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

StatusCode StatusCode StatusCode StatusCode

Gets or sets the HTTP status code.

(Inherited from ObjectResult)
Value Value Value Value Inherited from ObjectResult

Methods

ExecuteResult(ActionContext) ExecuteResult(ActionContext) ExecuteResult(ActionContext) ExecuteResult(ActionContext)

Executes the result operation of the action method synchronously. This method is called by MVC to process the result of an action method.

(Inherited from ActionResult)
ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext)
OnFormatting(ActionContext) OnFormatting(ActionContext) OnFormatting(ActionContext) OnFormatting(ActionContext)

This method is called before the formatter writes to the output stream.

(Inherited from ObjectResult)

Applies to