Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread onPostError
Sun, Jan 13 2008 11:04 AMPermanent Link

Jerry Blumenthal
When an OnPostError event handler is invoked, and the Action is set to
daFail (and left unchanged in the handler), do I need to insert RAISE in
the handler to let the application's exception handler and error
reporter take over?

My code is

isamdb.starttransaction;
Try
  mytable.post;
  mytable2.post;
  isamdb.commit;
Except
  isamdb.rollback;
  end;

Will the onposterror event prevent getting to the ROLLBACK?

Jerry
Mon, Jan 14 2008 9:50 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Jerry,

<< When an OnPostError event handler is invoked, and the Action is set to
daFail (and left unchanged in the handler), do I need to insert RAISE in the
handler to let the application's exception handler and error reporter take
over? >>

No, setting the Action to daFail will result in the exception being
re-raised for you.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image