Beginning of dzilization
[gitmo/Moose.git] / lib / Moose / Error / Confess.pm
CommitLineData
bf6fa6b3 1package Moose::Error::Confess;
2
c0e91e5f 3use strict;
4use warnings;
5
ae18d5ec 6our $AUTHORITY = 'cpan:STEVAN';
7
bf6fa6b3 8use base qw(Moose::Error::Default);
9
2f8c8480 10sub new {
11 my ( $self, @args ) = @_;
12 $self->create_error_confess(@args);
13}
14
bf6fa6b3 15__PACKAGE__
16
ad46f524 17# ABSTRACT: Prefer C<confess>
18
bf6fa6b3 19__END__
20
21=pod
22
bf6fa6b3 23=head1 SYNOPSIS
24
af1c30e0 25 # Metaclass definition must come before Moose is used.
26 use metaclass (
27 metaclass => 'Moose::Meta::Class',
28 error_class => 'Moose::Error::Confess',
bf6fa6b3 29 );
af1c30e0 30 use Moose;
31 # ...
bf6fa6b3 32
33=head1 DESCRIPTION
34
35This error class uses L<Carp/confess> to raise errors generated in your
36metaclass.
37
38=cut
39
40
41