SDAC

TMSConversation.EndConversationWithError Method

Terminates the conversation and provides the text and code of the error.

Class

TMSConversation

Syntax

procedure EndConversationWithError(const ErrorMessage: string; const ErrorCode: integer; const Cleanup: boolean = False);

Parameters
ErrorMessage
Holds the text of the error.
ErrorCode
Holds the code of the error.
Cleanup
True, if undelivered messages should be deleted. False otherwise.

Remarks

Use the EndConversationWithError method to terminate a conversation and handle the text (ErrorMessage) and code (ErrorCode) of the error. The Cleanup parameter determines whether the undelivered massages will be deleted.

See the description of the END CONVERSATION statement in MSDN for details.

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback