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=4abe4f59f281da1fb1fc46de6c494f7d90187491;hpb=9039e8ec60c872fa009efedd3b7b311128d1fc4b;p=gitmo%2FMoose.git diff --git a/lib/Moose/Error/Confess.pm b/lib/Moose/Error/Confess.pm index 4abe4f5..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 = '0.89_01'; -$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