1 package Moose::Error::Croak;
6 our $AUTHORITY = 'cpan:STEVAN';
8 use base qw(Moose::Error::Default);
11 my ( $self, @args ) = @_;
12 $self->create_error_croak(@args);
17 # ABSTRACT: Prefer C<croak>
25 # Metaclass definition must come before Moose is used.
27 metaclass => 'Moose::Meta::Class',
28 error_class => 'Moose::Error::Croak',
35 This error class uses L<Carp/croak> to raise errors generated in your
44 Overrides L<Moose::Error::Default/new> to prefer C<croak>.