Indy 9
|
EIdProtocolReplyError = class(EIdException)
property ReplyErrorCode: Integer;
Some protocols such as IMAP4 and POP3 do not use numerical error number codes. In such cases, we define constant values in the classes unit, and override the GetResponse method to parse those replies and return the constants. When this is done, you use the constants as if they were numerical values. Examples are the following:
TIdIMAP4
constructor CreateError(const AErrCode: Integer; const AReplyMessage: string); virtual; reintroduce;