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

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

Pascal
procedure RaiseExceptionForLastCmdResult; virtual; overload;

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 uses the RaiseReplyError method in LastCmdResult to create an EIdReplyRFCError exception using the the values in LastCmdResult.

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.