summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/CoercingWithoutCoercions.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Moose/Exception/CoercingWithoutCoercions.pm')
-rw-r--r--lib/Moose/Exception/CoercingWithoutCoercions.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Moose/Exception/CoercingWithoutCoercions.pm b/lib/Moose/Exception/CoercingWithoutCoercions.pm
new file mode 100644
index 0000000..b2e3438
--- /dev/null
+++ b/lib/Moose/Exception/CoercingWithoutCoercions.pm
@@ -0,0 +1,12 @@
+package Moose::Exception::CoercingWithoutCoercions;
+our $VERSION = '2.1405';
+
+use Moose;
+extends 'Moose::Exception';
+with 'Moose::Exception::Role::TypeConstraint';
+
+sub _build_message {
+ my $self = shift;
+ "Cannot coerce without a type coercion";
+}
+1;