X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FException%2FInterface.pm;h=73e4cc0df35818ff3b5f38f63189addca1911c25;hb=82010ea176741c7a4f2baf3f6f27377b1d9f6b15;hp=10bfc0fe7dad7d680c0a6837eca759b663fe7108;hpb=a62b43cd084495c7d73cd666e51d70598f63f540;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Exception/Interface.pm b/lib/Catalyst/Exception/Interface.pm index 10bfc0f..73e4cc0 100644 --- a/lib/Catalyst/Exception/Interface.pm +++ b/lib/Catalyst/Exception/Interface.pm @@ -1,6 +1,8 @@ package Catalyst::Exception::Interface; -use MooseX::Role::WithOverloading; +use Moose::Role; +use if !eval { require Moose; Moose->VERSION('2.1300') }, + 'MooseX::Role::WithOverloading'; use namespace::clean -except => 'meta'; use overload @@ -15,7 +17,7 @@ __END__ =head1 NAME -Catalyst::Exception::Interface - Exception for redispatching using $ctx->detach() +Catalyst::Exception::Interface - Role defining the interface for Catalyst exceptions =head1 SYNOPSIS @@ -23,14 +25,12 @@ Catalyst::Exception::Interface - Exception for redispatching using $ctx->detach( use Moose; use namespace::clean -except => 'meta'; - # This comprises the required interface. - sub as_string { 'the exception text for stringification' } - sub die { shift; die @_ } - sub die { shift; die @_ } - with 'Catalyst::Exception::Interface'; -See also L and L. + # This comprises the required interface. + sub as_string { 'the exception text for stringification' } + sub throw { shift; die @_ } + sub rethrow { shift; die @_ } =head1 DESCRIPTION @@ -57,6 +57,16 @@ must use L. Provided by Moose +=head1 SEE ALSO + +=over 4 + +=item L + +=item L + +=back + =head1 AUTHORS Catalyst Contributors, see Catalyst.pm