1 package Moose::Error::Croak;
6 use base qw(Moose::Error::Default);
9 my ( $self, @args ) = @_;
10 $self->create_error_croak(@args);
15 # ABSTRACT: Prefer C<croak>
23 # Metaclass definition must come before Moose is used.
25 metaclass => 'Moose::Meta::Class',
26 error_class => 'Moose::Error::Croak',
33 This error class uses L<Carp/croak> to raise errors generated in your
42 Overrides L<Moose::Error::Default/new> to prefer C<croak>.