HttpError Constructor (ModelStateDictionary, Boolean)

Initializes a new instance of the HttpError class for modelState.

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

public HttpError(
	ModelStateDictionary modelState,
	bool includeErrorDetail
)

Parameters

modelState
Type: System.Web.Http.ModelBinding.ModelStateDictionary

The invalid model state to use for error information.

includeErrorDetail
Type: System.Boolean

true to include exception messages in the error; false otherwise

Show: