Internet Direct (Indy) Version 9.0.2 Beta
EIdProtocolReplyError.ReplyErrorCode
Error code for the exception.

property ReplyErrorCode: Integer;
Description
ReplyErrorCode is the error code for the exception and can be used for testing selectively to certain errors in your program.

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