|
NAMECatalyst::Exception::Interface - Role defining the interface for Catalyst exceptions 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 @_ }
DESCRIPTIONThis 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 METHODSas_stringthrowrethrowMETHODSmetaProvided by Moose SEE ALSOAUTHORSCatalyst Contributors, see Catalyst.pm COPYRIGHTThis library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
|