---
name: "Moose::Error::Default"
section: "3pm"
platform: "linux"
package: "libmoose-perl"
version: "2.0603-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/Moose::Error::Default"
---

# Moose::Error::Default(3pm)

Carp based error generation for Moose.

## NAME

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

## VERSION

version 2.0603

## 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.

## AUTHOR

Moose is maintained by the Moose Cabal, along with the help of many contributors. See "CABAL" in Moose and "CONTRIBUTORS" in Moose for details.

## COPYRIGHT AND LICENSE

This software is copyright (c) 2012 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.
