HttpException Constructor (Int32, String)

 

Initializes a new instance of the HttpException class using an HTTP response status code and an error message.

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

new : 
        httpCode:int *
        message:string -> HttpException

Parameters

httpCode
Type: System.Int32

The HTTP response status code sent to the client corresponding to this error.

message
Type: System.String

The error message displayed to the client when the exception is thrown.

.NET Framework
Available since 1.1
Return to top
Show: