1 package Moose::Error::Confess;
6 use base qw(Moose::Error::Default);
9 my ( $self, @args ) = @_;
10 $self->create_error_confess(@args);
14 my ( $self, %args ) = @_;
16 my $depth = ($args{depth} || 0) - 1;
17 return 'Moose::Error::Util::create_error_confess('
18 . 'message => ' . $args{message} . ', '
19 . 'depth => ' . $depth . ', '
25 # ABSTRACT: Prefer C<confess>
33 # Metaclass definition must come before Moose is used.
35 metaclass => 'Moose::Meta::Class',
36 error_class => 'Moose::Error::Confess',
43 This error class uses L<Carp/confess> to raise errors generated in your