Export (0) Print
Expand All

HttpError Constructor (Exception, Boolean)

Initializes a new instance of the HttpError class for exception.

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

public HttpError(
	Exception exception,
	bool includeErrorDetail
)

Parameters

exception
Type: System.Exception

The exception to use for error information.

includeErrorDetail
Type: System.Boolean

true to include the exception information in the error; false otherwise

Show:
© 2015 Microsoft