| Moose documentation | Contained in the Moose distribution. |
Moose::Error::Confess - Prefer confess
version 2.0010
# Metaclass definition must come before Moose is used.
use metaclass (
metaclass => 'Moose::Meta::Class',
error_class => 'Moose::Error::Confess',
);
use Moose;
# ...
This error class uses confess in Carp to raise errors generated in your metaclass.
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 | Contained in the Moose distribution. |
package Moose::Error::Confess; BEGIN { $Moose::Error::Confess::AUTHORITY = 'cpan:STEVAN'; } BEGIN { $Moose::Error::Confess::VERSION = '2.0010'; } use strict; use warnings; use base qw(Moose::Error::Default); sub new { my ( $self, @args ) = @_; $self->create_error_confess(@args); } 1; # ABSTRACT: Prefer C<confess>
__END__