Catalyst::Exception::Interface(3pm)

Catalyst::Exception::Interface3pm

Role defining the interface for catalyst exceptions

Usage

   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 @_ }

Overview

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.

Required methods

as_string

throw

rethrow

Methods

meta

Provided by Moose

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

Authors

Catalyst Contributors, see Catalyst.pm

From libcatalyst-perl 5.90132-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.