Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Better way to catch Class::DBI constraint failures?

by Hero Zzyzzx (Curate)
on Aug 13, 2004 at 03:48 UTC ( #382541=note: print w/replies, xml ) Need Help??


in reply to Re: Better way to catch Class::DBI constraint failures?
in thread Better way to catch Class::DBI constraint failures?

I've checked that one out, thanks! One reason I wanted to use CDBI constraints is to have my form validation logic exist only in one place. "Don't repeat yourself" and all that pragmatic stuff.

Anyway, I figure if I can just get Class::DBI to emit more meaningful exceptions from constraint failures I can catch those in an overridden CDBI::_croak. You can read more detail here on the CDBI mailing list.

-Any sufficiently advanced technology is
indistinguishable from doubletalk.

My Biz

  • Comment on Re^2: Better way to catch Class::DBI constraint failures?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://382541]
help
Chatterbox?
holli switches OS
[holli]: Lidl only sells plastic
[Corion]: holli: Oooh, a twister top - so yes, that's a worse state of mind than it sounded ;)
[holli]: and since I outed myself anyway as a horrible person, to top it off, the bottle contains beer. alcohol free beer
[Discipulus]: nowaday such beers have also a good taste
[Corion]: holli: Heh - if you consider alcohol free beer as a not-so-sweet lemonade, you're not that bad off ;)
[holli]: actually, that's exactly how i look at it.

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (15)
As of 2017-09-25 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?