Topic Path: Symbol Reference > Classes > TIdStackBSDBase Class > TIdStackBSDBase Methods > WSTranslateSocketErrorMsg Method
TIdStackBSDBase.WSTranslateSocketErrorMsg Method

Builds an exception message using the specified socket error number.

function WSTranslateSocketErrorMsg(
    const AErr: integer
): string; virtual;
Error number to socket error. 

string - Exception message text built using the error number and the exception message text.

WSTranslateSocketErrorMsg is a string function used to build an exception message using the specified socket error number. 

WSTranslateSocketErrorMsg merges the value in AErr and the resource string for the error message into the the format specifed in RSStackError using the following numbers and values: 



When AErr contains a value other those specified above, the exception text will be blank. 

WSTranslateSocketErrorMsg is used in RaiseSocketError to perpare the exception message for the socket error.

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