Internet Direct (Indy) Version 9.0.2 Beta
EIdSocketError.CreateError
Constructor for the exception class.

constructor CreateError(const AErr: Integer; const AMsg: string); virtual;
Description
CreateError is the constructor that creates an instance of EIdSocketError with an error code specified by anErr and with the message specified by asMsg. anErr is the LastError property value and asMsg is the exception's message property.