TTMSMCPCloudImageAI.OnRequestError Event
Fires when a request has failed.
API unit family: TMS.MCP.CloudImageAI
Declaring type: TTMSMCPCloudImageAI
Inherited from: TTMSMCPCustomCloudImageAI
Syntax
OnRequestError: TTMSMCPCloudImageAIErrorEvent;
Remarks
Raised on the main thread. It covers a call that did not succeed, a response that carried no image, and a polled job that reported neither completion nor progress. The handler inspects the result for the status code and the raw response body but cannot retry or cancel from within the event. A missing authentication key does not reach this event; it raises an exception on the thread that started the operation.
Parameters
| Name | Description |
|---|---|
Sender |
Component that issued the request. |
ARequestResult |
Result of the underlying call. Its status flag, status code and raw response body describe the failure, and for a call that reached the service the body holds the error payload the service returned. |