X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FException%2FInterface.pm;h=5f0dbd1b0889e5cd39b51e7d4e57f1893924fe6a;hp=371bfa30de72b83ca16aff4d084ceead3c2db905;hb=HEAD;hpb=6d2a85aaf2cb4bfb9a5cf80a1c528e2208449985 diff --git a/lib/Catalyst/Exception/Interface.pm b/lib/Catalyst/Exception/Interface.pm index 371bfa3..5f0dbd1 100644 --- a/lib/Catalyst/Exception/Interface.pm +++ b/lib/Catalyst/Exception/Interface.pm @@ -1,6 +1,6 @@ package Catalyst::Exception::Interface; -use MooseX::Role::WithOverloading; +use Moose::Role; use namespace::clean -except => 'meta'; use overload @@ -27,8 +27,8 @@ Catalyst::Exception::Interface - Role defining the interface for Catalyst except # This comprises the required interface. sub as_string { 'the exception text for stringification' } - sub die { shift; die @_ } - sub die { shift; die @_ } + sub throw { shift; die @_ } + sub rethrow { shift; die @_ } =head1 DESCRIPTION @@ -38,9 +38,6 @@ It ensures that all exceptions follow the expected interface, and adds overloading for stringification when composed onto a class. -Note that if you compose this role onto another role, that role -must use L. - =head1 REQUIRED METHODS =head2 as_string