X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FError%2FConfess.pm;h=eaf6120ff3d38802b075b6e03c67ff80cd27ba39;hb=4aa1f4f426eb6adab6c49cd8f63384113b2de844;hp=3008734a20c119930cba873e227a98066add6dd4;hpb=a7be0f8593e4e7b7f570f49027ee4f8f25d4d8bc;p=gitmo%2FMoose.git diff --git a/lib/Moose/Error/Confess.pm b/lib/Moose/Error/Confess.pm index 3008734..eaf6120 100644 --- a/lib/Moose/Error/Confess.pm +++ b/lib/Moose/Error/Confess.pm @@ -3,28 +3,30 @@ package Moose::Error::Confess; use strict; use warnings; -our $VERSION = '0.69'; -$VERSION = eval $VERSION; -our $AUTHORITY = 'cpan:STEVAN'; - use base qw(Moose::Error::Default); -__PACKAGE__ +sub new { + my ( $self, @args ) = @_; + $self->create_error_confess(@args); +} -__END__ +1; -=pod +# ABSTRACT: Prefer C -=head1 NAME +__END__ -Moose::Error::Confess - Prefer C +=pod =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