TTMSMCPCustomServer.SetTaskError Method
Completes a task with a failure and notifies the client that owns it.
API unit family: TMS.MCP.Server
Declaring type: TTMSMCPCustomServer
Syntax
procedure SetTaskError(const ATaskId: string; AError: TJSONObject);
void __fastcall SetTaskError(const System::UnicodeString ATaskId, System::Json::TJSONObject* AError);
Parameters
| Name | Description |
|---|---|
ATaskId |
Identifier of the task to fail. |
AError |
Error object carrying a numeric code and a message. Ownership passes to the task registry. |