HttpException.CreateFromLastError(String) Método
Definição
Cria uma nova exceção HttpException com base no código de erro retornado do método GetLastError() da API do Windows.Creates a new HttpException exception based on the error code that is returned from the Windows API GetLastError() method.
public:
static System::Web::HttpException ^ CreateFromLastError(System::String ^ message);
public static System.Web.HttpException CreateFromLastError (string message);
static member CreateFromLastError : string -> System.Web.HttpException
Public Shared Function CreateFromLastError (message As String) As HttpException
Parâmetros
- message
- String
A mensagem de erro exibida para o cliente quando a exceção é gerada.The error message displayed to the client when the exception is thrown.
Retornos
Uma HttpException com base no código de erro retornado de uma chamada para o método GetLastError() da API do Windows.An HttpException based on the error code that is returned from a call to the Windows API GetLastError() method.