package Catalyst::Exception::Interface;
-use MooseX::Role::WithOverloading;
+use Moose::Role;
use namespace::clean -except => 'meta';
use overload
# 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
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<MooseX::Role::WithOverloading>.
-
=head1 REQUIRED METHODS
=head2 as_string