TTMSMCPServer.SetTaskError Method
Completes a task with a failure and notifies the client that owns it.
API unit family: TMS.MCP.Server
Declaring type: TTMSMCPServer
Inherited from: TTMSMCPCustomServer
Syntax
procedure SetTaskError(const ATaskId: string; AError: TJSONObject);
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. |