Use dzil Authority plugin - remove $AUTHORITY from code
[gitmo/Moose.git] / lib / Moose / Error / Default.pm
index 77e1bbd..c07c626 100644 (file)
@@ -3,10 +3,6 @@ package Moose::Error::Default;
 use strict;
 use warnings;
 
-our $VERSION   = '1.16';
-$VERSION = eval $VERSION;
-our $AUTHORITY = 'cpan:STEVAN';
-
 use Carp::Heavy;
 use Class::MOP::MiniTrait;
 
@@ -52,34 +48,34 @@ sub _create_error_carpmess {
 
 __PACKAGE__
 
+# ABSTRACT: L<Carp> based error generation for Moose.
+
 __END__
 
 =pod
 
-=head1 NAME
-
-Moose::Error::Default - L<Carp> based error generation for Moose.
-
 =head1 DESCRIPTION
 
 This class implements L<Carp> based error generation.
 
-The default behavior is like L<Moose::Error::Confess>. To override this
-to default to L<Moose::Error::Croak>'s behaviour on a system wide basis,
-set the MOOSE_ERROR_STYLE environment variable to C<croak>.
+The default behavior is like L<Moose::Error::Confess>. To override this to
+default to L<Moose::Error::Croak>'s behaviour on a system wide basis, set the
+MOOSE_ERROR_STYLE environment variable to C<croak>. The use of this
+environment variable is considered experimental, and may change in a future
+release.
 
 =head1 METHODS
 
 =over 4
 
-=item new @args
+=item B<< Moose::Error::Default->new(@args) >>
 
 Create a new error. Delegates to C<create_error_confess> or
 C<create_error_croak>.
 
-=item create_error_confess @args
+=item B<< $error->create_error_confess(@args) >>
 
-=item create_error_croak @args
+=item B<< $error->create_error_croak(@args) >>
 
 Creates a new errors string of the specified style.