X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FError%2FDefault.pm;h=c532915cee3eb4a1e4565a98724cde762c929eb3;hb=245478d5ee6b5343e4d591be811582963e177bef;hp=a5c44de5a358b4edbf3869e16d3cfad03e6ab92c;hpb=692a93f66801387a1cfd42fe5dc984364f1347ae;p=gitmo%2FMoose.git diff --git a/lib/Moose/Error/Default.pm b/lib/Moose/Error/Default.pm index a5c44de..c532915 100644 --- a/lib/Moose/Error/Default.pm +++ b/lib/Moose/Error/Default.pm @@ -3,7 +3,7 @@ package Moose::Error::Default; use strict; use warnings; -our $VERSION = '1.15'; +our $VERSION = '1.19'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -12,7 +12,6 @@ use Class::MOP::MiniTrait; use base 'Class::MOP::Object'; - Class::MOP::MiniTrait::apply(__PACKAGE__, 'Moose::Meta::Object::Trait'); sub new { @@ -65,22 +64,24 @@ Moose::Error::Default - L based error generation for Moose. This class implements L based error generation. -The default behavior is like L. To override this -to default to L's behaviour on a system wide basis, -set the MOOSE_ERROR_STYLE environment variable to C. +The default behavior is like L. To override this to +default to L's behaviour on a system wide basis, set the +MOOSE_ERROR_STYLE environment variable to C. 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 or C. -=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.