use strict;
use warnings;
-our $AUTHORITY = 'cpan:STEVAN';
-
use base qw(Moose::Error::Default);
sub new {
$self->create_error_confess(@args);
}
-__PACKAGE__
+sub _inline_new {
+ my ( $self, %args ) = @_;
+
+ my $depth = ($args{depth} || 0) - 1;
+ return 'Moose::Error::Util::create_error_confess('
+ . 'message => ' . $args{message} . ', '
+ . 'depth => ' . $depth . ', '
+ . ')';
+}
+
+1;
# ABSTRACT: Prefer C<confess>