Freigeben über


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

  • includeErrorDetail
    Type: System.Boolean

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

See Also

Reference

HttpError Class

HttpError Overload

System.Web.Http Namespace