Internet Direct (Indy)
Home
PreviousUpNext
TIdTCPConnection.RaiseExceptionForLastCmdResult Method (TClassIdException)

Raises an exception when an invalid response is received for the connection.

Pascal
procedure RaiseExceptionForLastCmdResult(
    AException: TClassIdException
); virtual; overload;
Parameters 
Description 
AException 
Class reference used to create the exception instance. 

RaiseExceptionForLastCmdResult is an overloaded procedure used to raise an exception when an invalid response code is received from the peer connection. 

RaiseExceptionForLastCmdResult is used in the overloaded CheckResponse method, and allows raising an exception using an indicated class reference or an EIdReplyRFCError exception used in the implementation of LastCmdResult

RaiseExceptionForLastCmdResult creates an exception instance using the class reference specified in AException, and assigns the text in LastCmdResult to the exception message.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.