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=ea4b2a3c7631f57ddbf049b9f16ca6df55d0e514;hpb=30350cb4d7b4345131ed638b2b30e7d1b7b1ef4c;p=gitmo%2FMoose.git diff --git a/lib/Moose/Error/Confess.pm b/lib/Moose/Error/Confess.pm index ea4b2a3..bf42d98 100644 --- a/lib/Moose/Error/Confess.pm +++ b/lib/Moose/Error/Confess.pm @@ -3,12 +3,17 @@ package Moose::Error::Confess; use strict; use warnings; -our $VERSION = '0.65'; +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__ @@ -21,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