X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FError%2FConfess.pm;h=c7ddf44019f7c31d03e879edbeb654abc7d67be1;hb=f7dc5f37d79f1e9bcbce5d0bf185fdb3633d3fc0;hp=3c021547b144b3ab5141ae66d16aff32c31f2d91;hpb=55d05fb16429c2150b5337b1a0130ae334e129d0;p=gitmo%2FMoose.git diff --git a/lib/Moose/Error/Confess.pm b/lib/Moose/Error/Confess.pm index 3c02154..c7ddf44 100644 --- a/lib/Moose/Error/Confess.pm +++ b/lib/Moose/Error/Confess.pm @@ -3,21 +3,30 @@ package Moose::Error::Confess; use strict; use warnings; -our $VERSION = '1.12'; -$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__ +sub _inline_new { + my ( $self, %args ) = @_; -=pod + my $depth = ($args{depth} || 0) - 1; + return 'Moose::Error::Util::create_error_confess(' + . 'message => ' . $args{message} . ', ' + . 'depth => ' . $depth . ', ' + . ')'; +} + +1; -=head1 NAME +# ABSTRACT: Prefer C -Moose::Error::Confess - Prefer C +__END__ + +=pod =head1 SYNOPSIS