<div dir="ltr">The end result I want is to not have to wrap every update / insert / etc with an eval.<div><br></div><div>I have no problem if DBIC internals use exception-based control internally. I just want to optionally have it not bubble up to the level of my application. It would be far more elegant if I could have DBIC play nicely with our applications exception handling, rather than have to insulate every usage manually.</div><div><br></div><div>-Thanks.</div><div>Sean<br><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 4, 2014 at 2:52 PM, Peter Rabbitson <span dir="ltr">&lt;<a href="mailto:rabbit+dbic@rabbit.us" target="_blank">rabbit+dbic@rabbit.us</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 10/01/2014 08:51 PM, Sean Quinlan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Greetings all!<br>
<br>
Our application has its own internal exception handling that we would<br>
like to be able to use when interacting with the database through<br>
DBIx::Class. I would prefer to do this in a way that does not require<br>
</blockquote></span>
&gt; ...<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
using evals all over &gt;&gt;<span class=""><br>
And regardless, no matter what I try to do, I don&#39;t seem to be able to<br>
suppress the die! Setting RaiseError to 0 and unsafe to 1 on connection<br>
does not appear to have any impact (though the documentation seemed to<br>
indicate it would).<br>
</span></blockquote>
<br>
<br>
I am not sure I understand the exact goal you are pursuing here. Note that trapping and *neutralizing* all exceptions is not possible - DBIC internals use exception-based control flow at places.<br>
<br>
Can ou please step away from describing the exact implementation you are trying to achieve, and re-explain what is the *end result* you are after.<br>
<br>
Thanks!<br>
<br>
<br>
______________________________<u></u>_________________<br>
List: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class" target="_blank">http://lists.scsys.co.uk/cgi-<u></u>bin/mailman/listinfo/dbix-<u></u>class</a><br>
IRC: <a href="http://irc.perl.org#dbix-class" target="_blank">irc.perl.org#dbix-class</a><br>
SVN: <a href="http://dev.catalyst.perl.org/repos/bast/DBIx-Class/" target="_blank">http://dev.catalyst.perl.org/<u></u>repos/bast/DBIx-Class/</a><br>
Searchable Archive: <a href="http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk" target="_blank">http://www.grokbase.com/group/<u></u>dbix-class@lists.scsys.co.uk</a><br>
</blockquote></div><br></div>