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=ab13c7993b84b1d1ba86a966553e384bd10b3100;hpb=0f8380b0cdbda1e13ed7c456edd3f0d1c0315ec9;p=gitmo%2FMoose.git diff --git a/lib/Moose/Error/Confess.pm b/lib/Moose/Error/Confess.pm index ab13c79..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.86'; -$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