The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Moose::Error::Default - Carp based error generation for Moose.

VERSION

version 2.1100

DESCRIPTION

This class implements Carp based error generation.

The default behavior is like Moose::Error::Confess. To override this to default to Moose::Error::Croak's behaviour on a system wide basis, set the MOOSE_ERROR_STYLE environment variable to croak. The use of this environment variable is considered experimental, and may change in a future release.

METHODS

Moose::Error::Default->new(@args)

Create a new error. Delegates to create_error_confess or create_error_croak.

$error->create_error_confess(@args)
$error->create_error_croak(@args)

Creates a new errors string of the specified style.

AUTHORS

  • Stevan Little <stevan.little@iinteractive.com>

  • Dave Rolsky <autarch@urth.org>

  • Jesse Luehrs <doy@tozt.net>

  • Shawn M Moore <code@sartak.org>

  • Yuval Kogman <nothingmuch@woobling.org>

  • Karen Etheridge <ether@cpan.org>

  • Florian Ragwitz <rafl@debian.org>

  • Hans Dieter Pearcey <hdp@weftsoar.net>

  • Chris Prather <chris@prather.org>

  • Matt S Trout <mst@shadowcat.co.uk>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Infinity Interactive, Inc..

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.