Subject: | Moose::Exception |
Date: | Fri, 17 Jan 2014 15:11:41 +0000 |
To: | bug-Moose [...] rt.cpan.org |
From: | Harold Frayman <harold.frayman [...] theguardian.com> |
Hi
I'm not sure of this is a Moose bug or not -- until I find the real cause
of my problem, which is causing the exception in the first place, I won't
know for sure. But it feels like it.
My code is (rightly) throwing a Moose::Exception::AttributeIsRequired when
trying to update a database. My code had been running without revealing
problems under an earlier Moose -- it's inside an eval which returns undef
on failure.
DBIx/Class/Storage/TxnScopeGuard.pm complains:
Operation "ne": no method found,
left argument in overloaded package Moose::Exception::AttributeIsRequired,
right argument has no overloaded magic at ...line 26
and the program quits.
At line 26 TxnScopeGuard tests
defined $@ and $@ ne ''
Someone tried to report a similar experience as a TxnScopeGuard bug, Bug
#74991 for DBIx-Class: TxnScopeGuard dies if $@ contains
object<https://rt.cpan.org/Public/Bug/Display.html?id=74991> but
it was rejected "as the problem was identified as a botched exception class
stringification."
Could that be the case here?
I'm using
perl 5, version 16, subversion 2 (v5.16.2) built for darwin-2level
Moose 2.1201
DBIx::Class 0.0825
Harold Frayman
Please consider the environment before printing this email.
------------------------------------------------------------------
Visit theguardian.com
On your mobile, download the Guardian iPhone app theguardian.com/iphone and our iPad edition theguardian.com/iPad
Save up to 57% by subscribing to the Guardian and Observer - choose the papers you want and get full digital access.
Visit subscribe.theguardian.com
This e-mail and all attachments are confidential and may also
be privileged. If you are not the named recipient, please notify
the sender and delete the e-mail and all attachments immediately.
Do not disclose the contents to another person. You may not use
the information for any purpose, or store, or copy, it in any way.
Guardian News & Media Limited is not liable for any computer
viruses or other material transmitted with or as part of this
e-mail. You should employ virus checking software.
Guardian News & Media Limited
A member of Guardian Media Group plc
Registered Office
PO Box 68164
Kings Place
90 York Way
London
N1P 2AP
Registered in England Number 908396
--------------------------------------------------------------------------