logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catalyst::Exception::Interface - Role defining the interface for Catalyst exceptions

Authors

       Catalyst Contributors, see Catalyst.pm

Description

       This is a role for the required interface for Catalyst exceptions.

       It ensures that all exceptions follow the expected interface, and adds overloading for stringification
       when composed onto a class.

Methods

meta
       Provided by Moose

Name

       Catalyst::Exception::Interface - Role defining the interface for Catalyst exceptions

Required Methods

as_stringthrowrethrow

See Also

       Catalyst
       Catalyst::Exception

Synopsis

          package My::Catalyst::Like::Exception;
          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 throw { shift; die @_ }
          sub rethrow { shift; die @_ }

See Also