Topic Path: Symbol Reference > Classes > TIdTCPConnection Class > TIdTCPConnection Methods > RaiseExceptionForLastCmdResult Method > RaiseExceptionForLastCmdResult Method (TClassIdException)
ContentsIndexHome
PreviousUpNext
TIdTCPConnection.RaiseExceptionForLastCmdResult Method (TClassIdException)

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

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.

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