| Moose documentation | view source | Contained in the Moose distribution. |
Moose::Error::Croak - Prefer croak
version 2.0010
# Metaclass definition must come before Moose is used.
use metaclass (
metaclass => 'Moose::Meta::Class',
error_class => 'Moose::Error::Croak',
);
use Moose;
# ...
This error class uses croak in Carp to raise errors generated in your metaclass.
Overrides new in Moose::Error::Default to prefer croak.
Stevan Little <stevan@iinteractive.com>
This software is copyright (c) 2011 by Infinity Interactive, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Moose documentation | view source | Contained in the Moose distribution. |