System.Net.HttpClientComponent.TNetHTTPClient.OnRequestException

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnRequestException: TRequestExceptionEvent read FOnRequestException write FOnRequestException;

C++

__property TRequestExceptionEvent OnRequestException = {read=FOnRequestException, write=FOnRequestException};

Properties

Type Visibility Source Unit Parent
event published
System.Net.HTTPClientComponent.pas
System.Net.HTTPClientComponent.hpp
System.Net.HttpClientComponent TNetHTTPClient

Description

OnRequestException is called when a request execution generates an exception.

OnRequestException is a better alternative than the OnRequestError event because as an argument it receives an exception object.

When SynchronizeEvents is True, the OnRequestException is called in the context of the main thread; otherwise, it is called in the context of the calling thread.

When OnRequestException is not assigned, then an exception is raised.