make github the primary repository
[gitmo/Moose.git] / lib / Moose / Error / Croak.pm
index b2c062a..448ee36 100644 (file)
@@ -3,10 +3,6 @@ package Moose::Error::Croak;
 use strict;
 use warnings;
 
-our $VERSION   = '1.05';
-$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<croak>
 
-Moose::Error::Croak - Prefer C<croak>
+__END__
+
+=pod
 
 =head1 SYNOPSIS