[Dbix-class] Race condition in find_or_create()

Matt S Trout dbix-class at trout.me.uk
Mon Aug 25 19:12:16 BST 2008


On Mon, Aug 25, 2008 at 11:15:18AM +0200, Tobias Kremer wrote:
> > Doesn't storage go via $self->throw_exception ? If so you could put the
> > parsing in there.
> 
> You mean overriding throw_exception in the storage-specific subclasses? Sounds
> good to me. Would you return a normalized string or rather some sort of
> exception object?

Mm. I think an object that stringifies to a normalized string, in case the
user has a throw_exception further down that's expecting a string.

Thoughts, anybody?

*wonders if we should start a new thread here*

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the DBIx-Class mailing list