System.Web.HttpException: Method Members

The methods of System.Web.HttpException are listed below. For a list of all members, see the HttpException Members list.

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

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.