System.Web.HttpException Members

The members of System.Web.HttpException are listed below.

See Also: Inherited members from System.Runtime.InteropServices.ExternalException

Public Constructors

Initializes a new instance of the System.Web.HttpException class and creates an empty System.Web.HttpException object.

Initializes a new instance of the System.Web.HttpException class using a supplied error message.

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

Initializes a new instance of the System.Web.HttpException class using an error message and the Exception.InnerException property.

Initializes a new instance of the System.Web.HttpException class using an error message and an exception code.

Initializes a new instance of the System.Web.HttpException class using an HTTP response status code, an error message, and the Exception.InnerException property.

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

Documentation for this section has not yet been entered.

Protected Constructors

Public Methods

static
CreateFromLastError(string) : HttpException

Creates a new System.Web.HttpException exception based on the error code that is returned from the Win32 API GetLastError() method.

GetHtmlErrorMessage() : string

Gets the HTML error message to return to the client.

GetHttpCode() : int

Gets the HTTP response status code to return to the client.

override
GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

Gets information about the exception and adds it to the System.Runtime.Serialization.SerializationInfo object.