Re: Transaction Problem, part two..




Because this is a procedure that is called from a master procedure that does
something like this:

try
MyAdo.begintrans;
UpdateOrdersShipDate(thisorder, ThisSubOrder, Now);
AnotherRoutine;
AndAThird;
MyAdo.CommitTrans;
except
MyAdo.RollbackTrans;
end;

Maybe I didn't understand this, but if I don't re-raise the exception in the
UpdateOrdersShipDate procedure, wouldn't it not be caught in the Except from
this master procedure?

Your RASIED exception should trigger a Rollback here at which point any error
message will be suppressed by this Try block
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.



Relevant Pages

  • Re: How to test that an exception is raised ?
    ... I'm new to Python. ... > I assume you don't actually see the exception (you don't see the stack ... Do you say that it's not possible to test (using unittest) if an exception ... 2./ If I re-raise the exception, then how to not show the traceback. ...
    (comp.lang.python)
  • Re: task model
    ... then re-raise the exception. ... may fail in silence and you never learn what ...
    (comp.lang.ada)
  • Re: task model
    ... then re-raise the exception. ... may fail in silence and you never learn what ...
    (comp.lang.ada)
  • Re: How to test that an exception is raised ?
    ... I assume you don't actually see the exception (you don't see the stack ... Your mps2xml.mps2xml function should return a value indicating success or ... failure or should re-raise the exception. ... You should catch only IOError ...
    (comp.lang.python)
  • Re: sufficiently pythonic code for testing type of function
    ... except AttributeError: ... Is it wrong to 're-raise' an exception with application-specific ...
    (comp.lang.python)