<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2006/02/d9507ec1090876a39668d43221abea7c"
  from="Alessandro Baretta &lt;a.baretta@b...&gt;"
  author="Alessandro Baretta"
  date="2006-02-01T17:30:37"
  subject="Re: [Caml-list] Private exceptions"
  prev="2006/02/8f36066258b5713fbc5692a41cc44caa"
  next="2006/02/1341fad78ec46b952326e6314759ec80"
  prev-in-thread="2006/02/8f36066258b5713fbc5692a41cc44caa"
  prev-thread="2006/01/e72c6ac936bb324a598c602c493d3cb2"
  next-thread="2006/01/c4e12277980ed00fce5c5d5756d03c97"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Private exceptions">
<msg 
  url="2006/01/30ab3d192830354e683beb041cafa8a8"
  from="Alessandro Baretta &lt;a.baretta@b...&gt;"
  author="Alessandro Baretta"
  date="2006-01-30T14:32:02"
  subject="Private exceptions">
<msg 
  url="2006/02/8f36066258b5713fbc5692a41cc44caa"
  from="Eric Cooper &lt;ecc@c...&gt;"
  author="Eric Cooper"
  date="2006-02-01T16:37:16"
  subject="Re: [Caml-list] Private exceptions">
<msg 
  url="2006/02/d9507ec1090876a39668d43221abea7c"
  from="Alessandro Baretta &lt;a.baretta@b...&gt;"
  author="Alessandro Baretta"
  date="2006-02-01T17:30:37"
  subject="Re: [Caml-list] Private exceptions">
</msg>
</msg>
</msg>
</thread>

<contents>
Eric Cooper wrote:
&gt; On Mon, Jan 30, 2006 at 03:31:56PM +0100, Alessandro Baretta wrote:
&gt; 
&gt; But the ability to match any exception (and re-raise it, without
&gt; knowing anything more about it) is essential for implementing
&gt; constructs like "unwind-protect", "with-open-file", suspend/force,
&gt; etc.

You are right, I must admit. Yet the problem remains. There are times when 
catching exceptions is unsafe. In my case, the exception aborts a database 
transaction. If the exception is not propagated to the calling transaction 
manager call, this will continue to execute the current transaction outside of 
the transaction block--as a rollback has already been issued.

Now, of course there is never only one way to solve a given programming problem, 
and I did solve mine without tampering with the exception system too 
much--except that I no longer export the exception signalling a transaction 
rollback, so that at least it cannot be *explicitely* filtered.

Alex


-- 
*********************************************************************
http://www.barettadeit.com/
Baretta DE&amp;IT
A division of Baretta SRL

tel. +39 02 370 111 55
fax. +39 02 370 111 54

Our technology:

The Application System/Xcaml (AS/Xcaml)
&lt;http://www.asxcaml.org/&gt;

The FreerP Project
&lt;http://www.freerp.org/&gt;

</contents>

</message>

