Re: [RDBO] Hardcoded Carp::croak vs error_mode

2008-02-21 Thread John Ingram
On 2/20/08, John Siracusa <[EMAIL PROTECTED]> wrote: > Exceptions are thrown unconditionally in situations that are beyond > the bounds of "graceful" error handling. For example: > > Carp::croak "Error in generated code for method $name - [EMAIL PROTECTED]" > > When something like that happ

Re: [RDBO] Hardcoded Carp::croak vs error_mode

2008-02-21 Thread John Siracusa
On Thu, Feb 21, 2008 at 7:11 AM, John Ingram <[EMAIL PROTECTED]> wrote: > The situation that I'm facing right now is when I set the value of a > column to one longer than the column length, either through > instantiation or the column's generated method: > > my $user = Foo::User->new( username

Re: [RDBO] Hardcoded Carp::croak vs error_mode

2008-02-21 Thread John Ingram
On Thu, Feb 21, 2008 at 8:36 AM, John Siracusa <[EMAIL PROTECTED]> wrote: > Just set the "overflow" property of the column to "warn" or "truncate" > to override teh default "fatal" mode: > > > http://search.cpan.org/dist/Rose-DB-Object/lib/Rose/DB/Object/MakeMethods/Generic.pm#overflow Well t

Re: [RDBO] Hardcoded Carp::croak vs error_mode

2008-02-21 Thread John Siracusa
On Thu, Feb 21, 2008 at 11:49 AM, John Ingram <[EMAIL PROTECTED]> wrote: > Well that's a different matter. I had tried that a while back and > found that the result was the same, which was what caused me to go > back to the default overflow behavior. Now that you refer me to that > spot in th