Terminates the conversation and provides the text and code of the error.
procedure EndConversationWithError(const ErrorMessage: string; const ErrorCode: integer; const Cleanup: boolean = False);
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.