Commit | Line | Data |
bf6fa6b3 |
1 | package Moose::Error::Confess; |
2 | |
c0e91e5f |
3 | use strict; |
4 | use warnings; |
5 | |
8b5074ce |
6 | our $VERSION = '0.97'; |
ae18d5ec |
7 | $VERSION = eval $VERSION; |
8 | our $AUTHORITY = 'cpan:STEVAN'; |
9 | |
bf6fa6b3 |
10 | use base qw(Moose::Error::Default); |
11 | |
12 | __PACKAGE__ |
13 | |
14 | __END__ |
15 | |
16 | =pod |
17 | |
18 | =head1 NAME |
19 | |
20 | Moose::Error::Confess - Prefer C<confess> |
21 | |
22 | =head1 SYNOPSIS |
23 | |
af1c30e0 |
24 | # Metaclass definition must come before Moose is used. |
25 | use metaclass ( |
26 | metaclass => 'Moose::Meta::Class', |
27 | error_class => 'Moose::Error::Confess', |
bf6fa6b3 |
28 | ); |
af1c30e0 |
29 | use Moose; |
30 | # ... |
bf6fa6b3 |
31 | |
32 | =head1 DESCRIPTION |
33 | |
34 | This error class uses L<Carp/confess> to raise errors generated in your |
35 | metaclass. |
36 | |
37 | =cut |
38 | |
39 | |
40 | |