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)
Syntax
'Declaration
Public Sub New ( _
exception As Exception, _
includeErrorDetail As Boolean _
)
'Usage
Dim exception As Exception
Dim includeErrorDetail As Boolean
Dim instance As New HttpError(exception, _
includeErrorDetail)
public HttpError(
Exception exception,
bool includeErrorDetail
)
public:
HttpError(
Exception^ exception,
bool includeErrorDetail
)
new :
exception:Exception *
includeErrorDetail:bool -> HttpError
public function HttpError(
exception : Exception,
includeErrorDetail : boolean
)
Parameters
exception
Type: System.ExceptionThe exception to use for error information.
includeErrorDetail
Type: System.Booleantrue to include the exception information in the error; false otherwise