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