diff options
Diffstat (limited to 'lib/Moose/Exception/CannotCoerceAWeakRef.pm')
-rw-r--r-- | lib/Moose/Exception/CannotCoerceAWeakRef.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Moose/Exception/CannotCoerceAWeakRef.pm b/lib/Moose/Exception/CannotCoerceAWeakRef.pm new file mode 100644 index 0000000..bb4a18b --- /dev/null +++ b/lib/Moose/Exception/CannotCoerceAWeakRef.pm @@ -0,0 +1,13 @@ +package Moose::Exception::CannotCoerceAWeakRef; +our $VERSION = '2.1405'; + +use Moose; +extends 'Moose::Exception'; +with 'Moose::Exception::Role::InvalidAttributeOptions'; + +sub _build_message { + my $self = shift; + "You cannot have a weak reference to a coerced value on attribute (".$self->attribute_name.")"; +} + +1; |