From: Florian Ragwitz Date: Sat, 21 Nov 2009 01:43:12 +0000 (+0000) Subject: Improve Exception::Interface docs. X-Git-Tag: 5.80014~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=6d2a85aaf2cb4bfb9a5cf80a1c528e2208449985 Improve Exception::Interface docs. --- diff --git a/lib/Catalyst/Exception/Interface.pm b/lib/Catalyst/Exception/Interface.pm index 10bfc0f..371bfa3 100644 --- a/lib/Catalyst/Exception/Interface.pm +++ b/lib/Catalyst/Exception/Interface.pm @@ -15,7 +15,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,15 +23,13 @@ Catalyst::Exception::Interface - Exception for redispatching using $ctx->detach( use Moose; use namespace::clean -except => 'meta'; + with 'Catalyst::Exception::Interface'; + # 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. - =head1 DESCRIPTION This is a role for the required interface for Catalyst exceptions. @@ -57,6 +55,16 @@ must use L. Provided by Moose +=head1 SEE ALSO + +=over 4 + +=item L + +=item L + +=back + =head1 AUTHORS Catalyst Contributors, see Catalyst.pm