Moose::Error::Croak.3pm

Langue: en

Version: 2010-06-15 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Moose::Error::Croak - Prefer "croak"

SYNOPSIS

     # Metaclass definition must come before Moose is used.
     use metaclass (
         metaclass => 'Moose::Meta::Class',
         error_class => 'Moose::Error::Croak',
     );
     use Moose;
     # ...
 
 

DESCRIPTION

This error class uses ``croak'' in Carp to raise errors generated in your metaclass.

METHODS

new
Overrides ``new'' in Moose::Error::Default to prefer "croak".