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)

public:
HttpException(
	int httpCode,
	String^ message
)

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: