HttpException Constructor (Int32, String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: