Class InternalServerErrorObjectResult
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
modelStateModelStateDictionaryThe ModelStateDictionary containing the validation errors.
Exceptions
- ArgumentNullException
Thrown if the
modelStateis null.
InternalServerErrorObjectResult(object)
Initializes a new instance of the InternalServerErrorObjectResult class.
public InternalServerErrorObjectResult(object error)
Parameters
errorobjectContains the errors to be returned to the client.