X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FError%2FConfess.pm;h=bf42d985019ac6798387f4f10539c618c2c29f11;hb=21bfbf0ec48e28495727f630e64349b1b08d5014;hp=5dd2bfb7c1e9d569316241a403445bf3caa017b5;hpb=c0e91e5f6d64984a080ffbffb28e7366c77dabb1;p=gitmo%2FMoose.git diff --git a/lib/Moose/Error/Confess.pm b/lib/Moose/Error/Confess.pm index 5dd2bfb..bf42d98 100644 --- a/lib/Moose/Error/Confess.pm +++ b/lib/Moose/Error/Confess.pm @@ -3,8 +3,17 @@ package Moose::Error::Confess; use strict; use warnings; +our $VERSION = '1.15'; +$VERSION = eval $VERSION; +our $AUTHORITY = 'cpan:STEVAN'; + use base qw(Moose::Error::Default); +sub new { + my ( $self, @args ) = @_; + $self->create_error_confess(@args); +} + __PACKAGE__ __END__ @@ -17,10 +26,13 @@ Moose::Error::Confess - Prefer C =head1 SYNOPSIS - use metaclass => ( - metaclass => "Moose::Meta::Class", - error_class => "Moose::Error::Confess", + # Metaclass definition must come before Moose is used. + use metaclass ( + metaclass => 'Moose::Meta::Class', + error_class => 'Moose::Error::Confess', ); + use Moose; + # ... =head1 DESCRIPTION