X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FError%2FConfess.pm;h=eaf6120ff3d38802b075b6e03c67ff80cd27ba39;hb=9c1bf11e2960c376afb5edfb2615d6de21dc379b;hp=65768601e8a7f286b8c40bc1c4fd3f82a767d41f;hpb=ae18d5ec3c2a0c7469f9504474301e4d96abcb39;p=gitmo%2FMoose.git diff --git a/lib/Moose/Error/Confess.pm b/lib/Moose/Error/Confess.pm index 6576860..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.61'; -$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