System.Web.HttpException.CreateFromLastError Method

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

Syntax

public static HttpException CreateFromLastError (string message)

Parameters

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

Returns

An System.Web.HttpException based on the error code that is returned from a call to the Win32 API GetLastError() method.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0