X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FError%2FCroak.pm;h=448ee3619e4023358c16f2f1520125c8774d2ca7;hb=HEAD;hp=a6483fe771b3e1c9778c7d885e5dfe9163b03295;hpb=1c7518d411958aa1651b82bbc8238265c6248f75;p=gitmo%2FMoose.git diff --git a/lib/Moose/Error/Croak.pm b/lib/Moose/Error/Croak.pm index a6483fe..448ee36 100644 --- a/lib/Moose/Error/Croak.pm +++ b/lib/Moose/Error/Croak.pm @@ -3,10 +3,6 @@ package Moose::Error::Croak; use strict; use warnings; -our $VERSION = '1.13'; -$VERSION = eval $VERSION; -our $AUTHORITY = 'cpan:STEVAN'; - use base qw(Moose::Error::Default); sub new { @@ -14,15 +10,23 @@ sub new { $self->create_error_croak(@args); } -__PACKAGE__ +sub _inline_new { + my ( $self, %args ) = @_; -__END__ + my $depth = ($args{depth} || 0) - 1; + return 'Moose::Error::Util::create_error_croak(' + . 'message => ' . $args{message} . ', ' + . 'depth => ' . $depth . ', ' + . ')'; +} -=pod +1; -=head1 NAME +# ABSTRACT: Prefer C -Moose::Error::Croak - Prefer C +__END__ + +=pod =head1 SYNOPSIS