X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FException.pm;h=fe1f5fdb4046d10742588606fd392e89712fb66f;hp=fc43cd843ba6e0070a2fba4937b5960833cc6ee2;hb=536bee890cf24e0e4bcda7562e7b70cc03ca0620;hpb=b5ecfcf07b8ffe7e9984f0279c8781ce51c6ac6a diff --git a/lib/Catalyst/Exception.pm b/lib/Catalyst/Exception.pm index fc43cd8..fe1f5fd 100644 --- a/lib/Catalyst/Exception.pm +++ b/lib/Catalyst/Exception.pm @@ -1,16 +1,10 @@ package Catalyst::Exception; -use strict; -use vars qw[@ISA $CATALYST_EXCEPTION_CLASS]; -use UNIVERSAL::require; - -BEGIN { - push( @ISA, $CATALYST_EXCEPTION_CLASS || 'Catalyst::Exception::Base' ); -} +# XXX: See bottom of file for Exception implementation package Catalyst::Exception::Base; -use strict; +use Moose; use Carp (); =head1 NAME @@ -50,16 +44,33 @@ sub throw { Carp::croak($message); } -=head1 AUTHOR +=head2 meta + +Provided by Moose -Sebastian Riedel, C -Christian Hansen, C +=head1 AUTHORS + +Catalyst Contributors, see Catalyst.pm =head1 COPYRIGHT -This program is free software, you can redistribute it and/or modify +This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. =cut +Catalyst::Exception::Base->meta->make_immutable; + +package Catalyst::Exception; + +use Moose; +use vars qw[$CATALYST_EXCEPTION_CLASS]; + +BEGIN { + extends($CATALYST_EXCEPTION_CLASS || 'Catalyst::Exception::Base'); +} + +no Moose; +__PACKAGE__->meta->make_immutable; + 1;