Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-08

IDE: ignore exception if they are caught

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Xiangrong Fang

Hi All,

I have the following code:

try
    stream.ReadBuffer(buffer, length);
except
    //handle exceptions...
end;

Is it possible to configure lazarus to ignore EStreamError in such case? I mean I do NOT want to ignore all such exceptions, only those that are already caught by my code.

Thanks,
Xiangrong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130821/70cbd489/attachment-0001.html>

Reply by email

Martin
to Xiangrong Fang
Xiangrong Fang wrote 13 lines
Hi All, I have the following code: try stream.ReadBuffer(buffer, length); except //handle exceptions... end; Is it possible to configure lazarus to ignore EStreamError in such case? I mean I do NOT want to ignore all such exceptions, only those that are already caught by my code.

At the moment it is only possible to filter by exception class.

That is you can either ignore *all* EStreamError, or none.

Reply by email

Martin
to Marco van de Voort
Marco van de Voort wrote 12 lines
On Wed, Aug 21, 2013 at 03:43:51PM +0800, Xiangrong Fang wrote: > I have the following code: > > try > stream.ReadBuffer(buffer, length); > except > //handle exceptions... > end; > > Is it possible to configure lazarus to ignore EStreamError in such case? Handle, inspect, and if you don't want to handle it, reraise.

You mean in the debugger?

Currently you can only say all exception of that classname or none.

The debugger, does not know, if there is an try-except frame.

Reply by email