Topic Path: Symbol Reference > Classes > EIdReplyRFCError Class > EIdReplyRFCError Methods > CreateError Constructor
ContentsIndexHome
PreviousUpNext
EIdReplyRFCError.CreateError Constructor

Constructor for the object instance.

constructor CreateError(
    const AErrorCode: Integer; 
    const AReplyMessage: string
); virtual; reintroduce;
Parameters 
Description 
AErrorCode 
Numeric protocol response code for the exception.
 
AReplyMessage 
Textual message for the protocol response exception. 

CreateError is an alternate constructor for the exception instance, and initializes the exception with the ErrorCode and Message indicated in AErrorCode and AReplyMessage. 

Use TIdReplyRFC.RaiseReplyError to create and raise an instance of the exception using an RFC response.

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