Re: Common exception handling



shaunpatterson@xxxxxxxxx a écrit :
Yeah, it looks like the extra layer of exception handling is the only
way. I was hoping I could avoid that if possible.

I guess this is what you want...

exception
when others =>
-- common part
...
begin
raise; -- Reraises current exception
exception
when A =>
...
when B =>
...
end;
end;

--
---------------------------------------------------------
J-P. Rosen (rosen@xxxxxxxxx)
Visit Adalog's web site at http://www.adalog.fr
.



Relevant Pages

  • Re: Restaurant Rules
    ... always try at least one new dish, and avoid those you ... Steakhouses: order steak. ... The exception rather than the rule: ...
    (rec.food.cooking)
  • Re: Restaurant Rules
    ... always try at least one new dish, and avoid those you ... Steakhouses: order steak. ... The exception rather than the rule: ...
    (rec.food.cooking)
  • Re: RIP: Ike Turner
    ... I won't tell you what my wife weighs). ... working in a hospital ER and the general truth of the ... Exception that proves the rule? ... I try hard to avoid trying situations -- like violence. ...
    (rec.music.makers.guitar.acoustic)
  • Re: is it ok to return null?
    ... But the goal should not necessarily be to avoid an exception. ... That's not to say I don't agree with returning an empty array from a ... by the advice to return an empty string to avoid a null. ...
    (comp.lang.java.help)
  • Re: Need Help Debugging
    ... You can look it up under 'Exception number' in the DrWatson Log. ... Is there a certain rule of thumb when using Critical Sections to avoid ... InitializeCriticalSection in order to avoid memory resource exceptions ...
    (microsoft.public.win32.programmer.kernel)