HttpException.CreateFromLastError Method (String)
.NET Framework (current version)
Creates a new HttpException exception based on the error code that is returned from the Win32 API GetLastError() method.
Assembly: System.Web (in System.Web.dll)
Parameters
- message
-
Type:
System.String
The error message displayed to the client when the exception is thrown.
Return Value
Type: System.Web.HttpExceptionAn HttpException based on the error code that is returned from a call to the Win32 API GetLastError() method.
.NET Framework
Available since 1.1
Available since 1.1
Show: