Re: EIdProtocolReplyError problems

Giganews Newsgroups
Subject: Re: EIdProtocolReplyError problems
Posted by:  Steven Forbes (…
Date: Sat, 14 Aug 2004

Guessing, but you probably need to add 'IdException' to the 'uses' clause at the top of the unit file/class?

"Andrew Morrow" <andr…> wrote in message news:70BC63F09DA8E240andr…
> Hi all.  I am trying to handle my most important exceptions by name and
> I've got these:
> I know I raise an EIdHTTPProtocolException in a few instances.  Im just
> showing the message as necessary and letting people deal with it (no
> socket ets)
> I also raise the EIdProtocolReplyError when people havnt uploaded my
> webservice to the right place or have put in the wrong url..  for some
> reason I have TERRIBLE luck with it.  Here are 2 code examples:
>    on E: EIdHTTPProtocolException do begin
>      ShowMessage('This is an error message'+#10+'The error was:'+
> E.Message);
>      exit;
>    end;
> on E:EIdProtocolReplyError  do begin
>  ShowMessage('This is another error message.'+#10+'The error was:'+
> E.Message);
> exit;
>  end;
> the first works like a charm
> When i replace it with the second (just for the sake of cleanliness and
> debugging) it gives me:
> Undeclared Identifier:EIdProtocolReplyError
> Any ideas?
> Thanks again folks



In response to

EIdProtocolReplyError problems posted by Andrew Morrow on Fri, 13 Aug 2004