Table of Contents

Class InternalServerErrorObjectResult

Namespace
MADE.Web.Mvc.Responses
Assembly
MADE.Web.Mvc.dll

Defines an ObjectResult that when executed will produce a Internal Server Error (500) response.

public class InternalServerErrorObjectResult : ObjectResult, IStatusCodeActionResult, IActionResult
Inheritance
InternalServerErrorObjectResult
Implements
Inherited Members
Extension Methods

Constructors

InternalServerErrorObjectResult(ModelStateDictionary)

Initializes a new instance of the InternalServerErrorObjectResult class.

public InternalServerErrorObjectResult(ModelStateDictionary modelState)

Parameters

modelState ModelStateDictionary

The ModelStateDictionary containing the validation errors.

Exceptions

ArgumentNullException

Thrown if the modelState is null.

InternalServerErrorObjectResult(object)

Initializes a new instance of the InternalServerErrorObjectResult class.

public InternalServerErrorObjectResult(object error)

Parameters

error object

Contains the errors to be returned to the client.