Topic Path: Symbol Reference > Classes > TIdCommandHandler Class > TIdCommandHandler Properties > ExceptionReply Property
ContentsIndexHome
PreviousUpNext
TIdCommandHandler.ExceptionReply Property

Represents the numeric code returned when an exception occurs in the command handler.

property ExceptionReply: TIdReply;

ExceptionReply is a Published TIdReply property that represents the response used when an exception occurs after signalling the associated command object in Check. When an exception is raised, ReplyExceptionCode is used with the message text from the exception as the new value for Reply. The peer thread connection in the associated command object is used to send the reply using SendReply when PeformReply indicates that a reply is needed. 

An exception that occurs in Check can result in the OnException event handler for the server context being executed. Check examines the ReplyExceptionCode on the server to ensure that either condition is detected.

TIdRFCReply 

TIdCommand 

TIdCommand.SendReply 

TIdCommand.PerformReply 

TIdTCPServer.OnException

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.