Subject: | Moose::Exception subclassing bug |
Date: | Sat, 7 Jun 2014 11:48:36 -0500 |
To: | bugs-moose [...] rt.cpan.org |
From: | Caleb Cushing <xenoterracide [...] gmail.com> |
Can't call method "as_string" on an undefined value at
/home/xenoterracide/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/x86_64-linux/Moose/Exception.pm
I extended Moose::Exception and was overriding trace, this was
unintentional on my part, bu if you look at Moose::Exception you'll
fine that the overload stringification, calls $self->trace->as_string,
it should instead check to see if trace is defined, in the event that
a subclasser does this. At the discretion of the fixer how it handles
undefined, though I would suggest an exception of some sort.
--
Caleb Cushing
http://xenoterracide.com
Calendar:
https://www.google.com/calendar/embed?src=xenoterracide%40gmail.com&ctz=America/Chicago