NAME

Moose::Manual::Exceptions::Manifest - Moose's Exception Types

VERSION

version 2.1302

Moose::Exception::AccessorMustReadWrite

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Cannot define an accessor name on a read-only attribute, accessors are read/
write

Moose::Exception::AddParameterizableTypeTakesParameterizableType

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute is read-only, isa Str and is required.

Sample Error Message:

Type must be a Moose::Meta::TypeConstraint::Parameterizable not Foo

Moose::Exception::AddRoleTakesAMooseMetaRoleInstance

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_to_be_added

This attribute is read-only, isa Any and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Roles must be instances of Moose::Meta::Role

Moose::Exception::AddRoleToARoleTakesAMooseMetaRole

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->role_to_be_added

This attribute is read-only, isa Any and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Roles must be instances of Moose::Meta::Role

Moose::Exception::ApplyTakesABlessedInstance

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->param

This attribute is read-only, isa Any and is required.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass in an blessed instance

Moose::Exception::AttachToClassNeedsAClassMOPClassInstanceOrASubclass

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Attribute.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->class

This attribute is read-only, isa Any and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass a Class::MOP::Class instance (or a subclass)

Moose::Exception::AttributeConflictInRoles

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->second_role_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Role 'Foo4' has encountered an attribute conflict while being composed into
'Bar4'. This is a fatal error and cannot be disambiguated. The conflicting
attribute is named 'foo'.

Moose::Exception::AttributeConflictInSummation

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::AttributeName, Moose::Exception::Role::Role.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->second_role_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

We have encountered an attribute conflict with 'foo' during role composition
.  This attribute is defined in both Foo2 and Bar2. This is a fatal error and
cannot be disambiguated.

Moose::Exception::AttributeExtensionIsNotSupportedInRoles

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

has '+attr' is not supported in roles

Moose::Exception::AttributeIsRequired

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->attribute_name

This attribute can be used for fetching attribute instance: my $class = Moose::Util::find_meta( $exception->class_name ); my $attribute = $class->get_attribute( $exception->attribute_name );

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef, has a predicate has_params and is optional.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Messages:

Attribute (baz) is required
Attribute (bar) is required
Attribute (foo_required) is required
Attribute (baz) is required

Moose::Exception::AttributeMustBeAnClassMOPMixinAttributeCoreOrSubclass

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Any and is required.

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

   Your attribute must be an instance of Class::MOP::Mixin::AttributeCore (or a
subclass)

Moose::Exception::AttributeNamesDoNotMatch

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute and is required.

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

attribute_name (foo) does not match attribute->name (bar)

Moose::Exception::AttributeValueIsNotAnObject

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Attribute, Moose::Exception::Role::Instance.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->given_value

This attribute is read-only, isa Any and is required.

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method

This attribute is read-only, isa Moose::Meta::Method::Delegation and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

   Cannot delegate get_count to count because the value of foo is not an object
(got 'ARRAY(0x223f578)')

Moose::Exception::AttributeValueIsNotDefined

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Attribute, Moose::Exception::Role::Instance.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method

This attribute is read-only, isa Moose::Meta::Method::Delegation and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Cannot delegate get_count to count because the value of foo is not defined

Moose::Exception::AutoDeRefNeedsArrayRefOrHashRef

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You cannot auto-dereference anything other than a ArrayRef or HashRef on
attribute (bar)

Moose::Exception::BadOptionFormat

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Attribute.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->option_name

This attribute is read-only, isa Str and is required.

$exception->option_value

This attribute is read-only, isa Any and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

bad accessor/reader/writer/predicate/clearer format, must be a HASH ref

Moose::Exception::BothBuilderAndDefaultAreNotAllowed

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Setting both default and builder is not allowed.

Moose::Exception::BuilderDoesNotExist

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Attribute and Moose::Exception::Role::Instance.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Foo does not support builder method '_build_baz' for attribute 'baz'

Moose::Exception::BuilderMethodNotSupportedForAttribute

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Attribute and Moose::Exception::Role::Instance.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Class::MOP::Attribute does not support builder method 'foo' for attribute
'bar'

Moose::Exception::BuilderMethodNotSupportedForInlineAttribute

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class, Moose::Exception::Role::Instance.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->builder

This attribute is read-only, isa Str and is required.

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

   Test::LazyBuild::Attribute does not support builder method '_build_fool' for
attribute 'fool'

Moose::Exception::BuilderMustBeAMethodName

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

builder must be a defined scalar value which is a method name

Moose::Exception::CallingMethodOnAnImmutableInstance

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The 'add_method' method cannot be called on an immutable instance

Moose::Exception::CallingReadOnlyMethodOnAnImmutableInstance

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The 'superclasses' method is read-only when called on an immutable instance

Moose::Exception::CanExtendOnlyClasses

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You cannot inherit from a Moose Role (Bar)

Moose::Exception::CannotAddAdditionalTypeCoercionsToUnion

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_coercion_union_object

This attribute is read-only, isa Moose::Meta::TypeCoercion::Union and is required.

Sample Error Message:

Cannot add additional type coercions to Union types

Moose::Exception::CannotAddAsAnAttributeToARole

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->attribute_class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Cannot add a Moose::Meta::Class as an attribute to a role

Moose::Exception::CannotApplyBaseClassRolesToRole

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::ParamsHash and Moose::Exception::Role::Role.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You can only apply base class roles to a Moose class, not a role.

Moose::Exception::CannotAssignValueToReadOnlyAccessor

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class and Moose::Exception::Role::EitherAttributeOrAttributeName.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate has_attribute and is optional.

$exception->attribute_name

This attribute is read-only, isa Str, has a predicate has_attribute_name and is optional.

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef, has a predicate has_params and is optional.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->value

This attribute is read-only, isa Any and is required.

Sample Error Message:

Cannot assign a value to a read-only accessor

Moose::Exception::CannotAugmentIfLocalMethodPresent

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class and Moose::Exception::Role::Method.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method

This attribute is read-only, isa Moose::Meta::Method and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Cannot add an augment method if a local method is already present

Moose::Exception::CannotAugmentNoSuperMethod

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method_name

This attribute is read-only, isa Str and is required.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You cannot augment 'foo' because it has no super method

Moose::Exception::CannotAutoDereferenceTypeConstraint

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Attribute, Moose::Exception::Role::Instance and Moose::Exception::Role::TypeConstraint.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Sample Error Message:

Can not auto de-reference the type constraint 'Int'

Moose::Exception::CannotAutoDerefWithoutIsa

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You cannot auto-dereference without specifying a type constraint on
attribute (bar)

Moose::Exception::CannotCalculateNativeType

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Instance.

ATTRIBUTES

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Cannot calculate native type for Moose::Meta::Class::__ANON__::SERIAL::

Moose::Exception::CannotCallAnAbstractBaseMethod

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->package_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Class::MOP::Method::Generated is an abstract base class, you must provide a
constructor.

Moose::Exception::CannotCallAnAbstractMethod

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Abstract method

Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::InvalidAttributeOptions, Moose::Exception::Role::ParamsHash and Moose::Exception::Role::TypeConstraint.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Sample Error Message:

You cannot coerce an attribute (foo) unless its type (Str) has a coercion

Moose::Exception::CannotCoerceAWeakRef

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You cannot have a weak reference to a coerced value on attribute (bar)

Moose::Exception::CannotCreateHigherOrderTypeWithoutATypeParameter

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::TypeConstraint.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Sample Error Message:

You cannot create a Higher Order type without a type parameter

Moose::Exception::CannotCreateMethodAliasLocalMethodIsPresent

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Method, Moose::Exception::Role::Role.

ATTRIBUTES

$exception->aliased_method_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method

This attribute is read-only, isa Moose::Meta::Method and is required.

$exception->role_being_applied_name

This attribute is read-only, isa Str and is required.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Cannot create a method alias if a local method of the same name exists

Moose::Exception::CannotCreateMethodAliasLocalMethodIsPresentInClass

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class, Moose::Exception::Role::Method, Moose::Exception::Role::Role.

ATTRIBUTES

$exception->aliased_method_name

This attribute is read-only, isa Str and is required.

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method

This attribute is read-only, isa Moose::Meta::Method and is required.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Cannot create a method alias if a local method of the same name exists

Moose::Exception::CannotDelegateLocalMethodIsPresent

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Attribute and Moose::Exception::Role::Method.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method

This attribute is read-only, isa Moose::Meta::Method and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You cannot overwrite a locally defined method (full) with a delegation

Moose::Exception::CannotDelegateWithoutIsa

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Attribute.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Cannot delegate methods based on a Regexp without a type constraint (isa)

Moose::Exception::CannotFindDelegateMetaclass

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Attribute.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Cannot find delegate metaclass for attribute bar

Moose::Exception::CannotFindType

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute is read-only, isa Str and is required.

Sample Error Message:

Cannot find type 'Foo', perhaps you forgot to load it

Moose::Exception::CannotFindTypeGivenToMatchOnType

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->action

This attribute is read-only, isa Any and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->to_match

This attribute is read-only, isa Any and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type

This attribute is read-only, isa Any and is required.

Sample Error Message:

Cannot find or parse the type 'doesNotExist'

Moose::Exception::CannotFixMetaclassCompatibility

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->metaclass_type

This attribute is read-only, isa Str and is optional.

$exception->superclass

This attribute is read-only, isa Object and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Messages:

Can't fix metaclass incompatibility for Foo9 because it is not pristine.
Can't fix metaclass incompatibility for Foo::Unsafe::Sub because it is not
pristine.

Moose::Exception::CannotGenerateInlineConstraint

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::TypeConstraint.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->parameterizable_type_object_name

This attribute can be used for fetching parameterizable type constraint(Moose::Meta::TypeConstraint::Parameterizable): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

$exception->value

This attribute is read-only, isa Str and is required.

Sample Error Message:

Can't generate an inline constraint for Int, since none was defined

Moose::Exception::CannotInitializeMooseMetaRoleComposite

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->args

This attribute is read-only, isa ArrayRef and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->old_meta

This attribute is read-only, isa Any and is required.

$exception->role_composite

This attribute is read-only, isa Moose::Meta::Role::Composite and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Moose::Meta::Role::Composite instances can only be reinitialized from an
existing metaclass instance

Moose::Exception::CannotInlineTypeConstraintCheck

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::TypeConstraint.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Sample Error Message:

Cannot inline a type constraint check for NotInlinable

Moose::Exception::CannotLocatePackageInINC

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->INC

This attribute is read-only, isa ArrayRef and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->metaclass_name

This attribute is read-only, isa Str and is required.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->possible_packages

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type

This attribute is read-only, isa Str and is required.

Sample Error Message:

Can't locate Moose::Meta::Attribute::Custom::Trait::Xyz or Xyz in \@INC \(\@
INC contains:

Moose::Exception::CannotMakeMetaclassCompatible

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->superclass_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Moose::Exception::CannotOverrideALocalMethod

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method_name

This attribute is read-only, isa Str and is required.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Cannot add an override of method 'bar' because there is a local version of
'bar'

Moose::Exception::CannotOverrideBodyOfMetaMethods

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Overriding the body of meta methods is not allowed

Moose::Exception::CannotOverrideLocalMethodIsPresent

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class and Moose::Exception::Role::Method.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method

This attribute is read-only, isa Moose::Meta::Method and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Cannot add an override method if a local method is already present

Moose::Exception::CannotOverrideNoSuperMethod

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method_name

This attribute is read-only, isa Str and is required.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You cannot override 'foo' because it has no super method

Moose::Exception::CannotRegisterUnnamedTypeConstraint

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

can't register an unnamed type constraint

Moose::Exception::CannotUseLazyBuildAndDefaultSimultaneously

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You can not use lazy_build and default for the same attribute (bar)

Moose::Exception::CanOnlyConsumeRole

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You can only consume roles, Module::Runtime is not a Moose role

Moose::Exception::CanOnlyWrapBlessedCode

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->code

This attribute is read-only, isa Any and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Can only wrap blessed CODE

Moose::Exception::CanReblessOnlyIntoASubclass

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class, Moose::Exception::Role::Instance, Moose::Exception::Role::InstanceClass, Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->instance_class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You may rebless only into a subclass of (Foo2), of which (Foo) isn't.

Moose::Exception::CanReblessOnlyIntoASuperclass

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class, Moose::Exception::Role::Instance and Moose::Exception::Role::InstanceClass.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->instance_class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You may rebless only into a superclass of (Foo), of which (Foo2) isn't.

Moose::Exception::CircularReferenceInAlso

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->also_parameter

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->stack

This attribute is read-only, isa ArrayRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Circular reference in 'also' parameter to Moose::Exporter between
MooseX::CircularAlso and MooseX::CircularAlso

Moose::Exception::ClassDoesNotHaveInitMeta

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->traits

This attribute is read-only, isa ArrayRef and is required.

Sample Error Message:

Cannot provide traits when Moose::Util::TypeConstraints does not have an
init_meta() method

Moose::Exception::ClassDoesTheExcludedRole

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class, Moose::Exception::Role::Role.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->excluded_role_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The class FooClass2 does the excluded role 'ExcludedRole2'

Moose::Exception::ClassNamesDoNotMatch

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Class::MOP::Class and is required.

$exception->class_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Moose::Exception::CloneObjectExpectsAnInstanceOfMetaclass

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->instance

This attribute is read-only, isa Any and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass an instance of the metaclass (Foo), not (foo)

Moose::Exception::CodeBlockMustBeACodeRef

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Instance, Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Your code block must be a CODE reference

Moose::Exception::CoercingWithoutCoercions

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::TypeConstraint.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Sample Error Message:

Cannot coerce without a type coercion

Moose::Exception::CoercionAlreadyExists

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Instance.

ATTRIBUTES

$exception->constraint_name

This attribute is read-only, isa Str and is required.

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

A coercion action already exists for 'Int'

Moose::Exception::CoercionNeedsTypeConstraint

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You cannot have coercion without specifying a type constraint on attribute
(bar)

Moose::Exception::ConflictDetectedInCheckRoleExclusions

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->excluded_role_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Conflict detected: Foo excludes role 'Bar'

Moose::Exception::ConflictDetectedInCheckRoleExclusionsInToClass

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class and Moose::Exception::Role::Role.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Conflict detected: FooClass excludes role 'BarRole'

Moose::Exception::ConstructClassInstanceTakesPackageName

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass a package name

Moose::Exception::CouldNotCreateMethod

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Attribute.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->error

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->option_name

This attribute is read-only, isa Str and is required.

$exception->option_value

This attribute is read-only, isa Any and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Could not create the 'predicate' method for bar because : Can't call method
"name" on an undefined value

Moose::Exception::CouldNotCreateWriter

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::EitherAttributeOrAttributeName and Moose::Exception::Role::Instance.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate has_attribute and is optional.

$exception->attribute_name

This attribute is read-only, isa Str, has a predicate has_attribute_name and is optional.

$exception->error

This attribute is read-only, isa Str and is required.

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef, has a predicate has_params and is optional.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

   Could not generate inline writer because : Could not create writer for 'bar'
because Can't locate object method "_eval_environment" via package
"Class::MOP::Attribute"

Moose::Exception::CouldNotEvalConstructor

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->constructor_method

This attribute is read-only, isa Class::MOP::Method::Constructor and is required.

$exception->error

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->source

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Could not eval the constructor :

Moose::Exception::CouldNotEvalDestructor

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->error

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method_destructor_object

This attribute is read-only, isa Moose::Meta::Method::Destructor and is required.

$exception->source

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Could not eval the destructor

Moose::Exception::CouldNotFindTypeConstraintToCoerceFrom

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Instance.

ATTRIBUTES

$exception->constraint_name

This attribute is read-only, isa Str and is required.

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Could not find the type constraint (xyz) to coerce from

Moose::Exception::CouldNotGenerateInlineAttributeMethod

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Instance.

ATTRIBUTES

$exception->error

This attribute is read-only, isa Moose::Exception and is required.

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->option

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Messages:

Could not generate inline accessor because : Can't call method
"get_meta_instance" on an undefined value
Could not generate inline reader because : Can't call method
"get_meta_instance" on an undefined value
Could not generate inline writer because : Can't call method
"get_meta_instance" on an undefined value
Could not generate inline predicate because : Can't call method
"get_meta_instance" on an undefined value
Could not generate inline clearer because : Can't call method
"get_meta_instance" on an undefined value

Moose::Exception::CouldNotLocateTypeConstraintForUnion

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::TypeConstraint.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Sample Error Message:

Could not locate type constraint (foo) for the union

Moose::Exception::CouldNotParseType

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->position

This attribute is read-only, isa Int and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type

This attribute is read-only, isa Str and is required.

Sample Error Message:

'Str | Undef |' didn't parse (parse-pos=11 and str-length=13)

Moose::Exception::CreateMOPClassTakesArrayRefOfAttributes

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::ParamsHash and Moose::Exception::Role::RoleForCreateMOPClass.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass an ARRAY ref of attributes

Moose::Exception::CreateMOPClassTakesArrayRefOfSuperclasses

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::ParamsHash and Moose::Exception::Role::RoleForCreateMOPClass.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass an ARRAY ref of superclasses

Moose::Exception::CreateMOPClassTakesHashRefOfMethods

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::ParamsHash and Moose::Exception::Role::RoleForCreateMOPClass.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass an HASH ref of methods

Moose::Exception::CreateTakesArrayRefOfRoles

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::ParamsHash and Moose::Exception::Role::RoleForCreate.

ATTRIBUTES

$exception->attribute_class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass an ARRAY ref of roles

Moose::Exception::CreateTakesHashRefOfAttributes

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::ParamsHash and Moose::Exception::Role::RoleForCreate.

ATTRIBUTES

$exception->attribute_class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass a HASH ref of attributes

Moose::Exception::CreateTakesHashRefOfMethods

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::ParamsHash and Moose::Exception::Role::RoleForCreate.

ATTRIBUTES

$exception->attribute_class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass a HASH ref of methods

Moose::Exception::DefaultToMatchOnTypeMustBeCodeRef

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->cases_to_be_matched

This attribute is read-only, isa ArrayRef and is required.

$exception->default_action

This attribute is read-only, isa Any and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->to_match

This attribute is read-only, isa Any and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Default case must be a CODE ref, not ARRAY(0x14f6fc8)

Moose::Exception::DelegationToAClassWhichIsNotLoaded

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Attribute.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->class_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

   The bar attribute is trying to delegate to a class which has not been loaded
- Not::Loaded

Moose::Exception::DelegationToARoleWhichIsNotLoaded

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Attribute.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The bar attribute is trying to delegate to a role which has not been loaded
- Role

Moose::Exception::DelegationToATypeWhichIsNotAClass

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Attribute.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Messages:

The bar attribute is trying to delegate to a type (Int) that is not backed
by a class
The bar attribute is trying to delegate to a type (PositiveInt) that is not
backed by a class

Moose::Exception::DoesRequiresRoleName

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must supply a role name to does()

Moose::Exception::EnumCalledWithAnArrayRefAndAdditionalArgs

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->args

This attribute is read-only, isa ArrayRef and is required.

$exception->array

This attribute is read-only, isa ArrayRef and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

enum called with an array reference and additional arguments. Did you mean
to parenthesize the enum call's parameters?

Moose::Exception::EnumValuesMustBeString

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->value

This attribute is read-only, isa Any and is required.

Sample Error Messages:

Enum values must be strings, not undef
Enum values must be strings, not 'ARRAY(0x191d1b8)'

Moose::Exception::ExtendsMissingArgs

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Must derive at least one class

Moose::Exception::HandlesMustBeAHashRef

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Instance.

ATTRIBUTES

$exception->given_handles

This attribute is read-only, isa Any and is required.

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The 'handles' option must be a HASH reference, not bar

Moose::Exception::IllegalInheritedOptions

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->illegal_options

This attribute is read-only, isa ArrayRef and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Illegal inherited options => (clearer)

Moose::Exception::IllegalMethodTypeToAddMethodModifier

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->class_or_object

This attribute is read-only, isa Any and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->modifier_name

This attribute is read-only, isa Str and is required.

$exception->params

This attribute is read-only, isa ArrayRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Methods passed to before must be provided as a list, arrayref or regex, not
HASH

Moose::Exception::IncompatibleMetaclassOfSuperclass

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_meta_type

This attribute is read-only, isa Str and is required.

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->superclass_meta_type

This attribute is read-only, isa Str and is required.

$exception->superclass_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The metaclass of My::Class (Class::MOP::Class) is not compatible with the
metaclass of its superclass, My::Role (Moose::Meta::Role)

Moose::Exception::InitializeTakesUnBlessedPackageName

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->package_name

This attribute is read-only, isa Any and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass a package name and it cannot be blessed

Moose::Exception::InitMetaRequiresClass

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Cannot call init_meta without specifying a for_class

Moose::Exception::InstanceBlessedIntoWrongClass

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class, Moose::Exception::Role::Instance, Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Objects passed as the __INSTANCE__ parameter must already be blessed into
the correct class, but Bar=HASH(0x2d77528) is not a Foo

Moose::Exception::InstanceMustBeABlessedReference

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class, Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->instance

This attribute is read-only, isa Any and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The __INSTANCE__ parameter must be a blessed reference, not ARRAY(0x1d75d40)

Moose::Exception::InvalidArgPassedToMooseUtilMetaRole

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->argument

This attribute is read-only, isa Any and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Messages:

When using Moose::Util::MetaRole, you must pass a Moose class name, role
name, metaclass object, or metarole object. You passed Foo=HASH(0x16adb58), and
we resolved this to a Foo object.
When using Moose::Util::MetaRole, you must pass a Moose class name, role
name, metaclass object, or metarole object. You passed ARRAY(0x21eb868), and
this did not resolve to a metaclass or metarole. Maybe you need to call Moose->i
nit_meta to initialize the metaclass first?
When using Moose::Util::MetaRole, you must pass a Moose class name, role
name, metaclass object, or metarole object. You passed undef, and this did not
resolve to a metaclass or metarole. Maybe you need to call Moose->init_meta to
initialize the metaclass first?

Moose::Exception::InvalidArgumentsToTraitAliases

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->alias

This attribute is read-only, isa Any and is required.

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->package_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

HASH references are not valid arguments to the 'trait_aliases' option

Moose::Exception::InvalidArgumentToMethod

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->argument

This attribute is read-only, isa Any and is required.

$exception->argument_noun

This attribute is read-only, isa Str, has a default value "argument" and is optional.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method_name

This attribute is read-only, isa Str and is required.

$exception->ordinal

This attribute is read-only, isa Str, has a predicate is_ordinal_set and is optional.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type

This attribute is read-only, isa Str and is required.

$exception->type_of_argument

This attribute is read-only, isa Str and is required.

Sample Error Messages:

The index passed to get must be an integer
The argument passed to first must be a code reference
The argument passed to first_index must be a code reference
The argument passed to grep must be a code reference
The argument passed to join must be a string
The argument passed to map must be a code reference
The n value passed to natatime must be an integer
The second argument passed to natatime must be a code reference
The argument passed to reduce must be a code reference
The argument passed to sort must be a code reference
The argument passed to sort_in_place must be a code reference
The length argument passed to splice must be an integer
The argument passed to grep must be a code reference
The key passed to exists must be a defined value
The argument passed to match must be a string or regexp reference
The first argument passed to replace must be a string or regexp reference
The second argument passed to replace must be a string or code reference
The first argument passed to substr must be an integer
The second argument passed to substr must be an integer
The third argument passed to substr must be a string

Moose::Exception::InvalidBaseTypeGivenToCreateParameterizedTypeConstraint

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::TypeConstraint.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Sample Error Message:

Could not locate the base type (Foo)

Moose::Exception::InvalidHandleValue

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Instance.

ATTRIBUTES

$exception->handle_value

This attribute is read-only, isa Any and is required.

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

All values passed to handles must be strings or ARRAY references, not (?^:ba
r)

Moose::Exception::InvalidHasProvidedInARole

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Usage: has 'name' => ( key => value, ... )

Moose::Exception::InvalidNameForType

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

contains invalid characters

Moose::Exception::InvalidRoleApplication

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->application

This attribute is read-only, isa Any and is required.

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Role applications must be instances of
Moose::Meta::Role::Application::ToClass

Moose::Exception::InvalidTypeConstraint

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->registry_object

This attribute is read-only, isa Moose::Meta::TypeConstraint::Registry and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type

This attribute is read-only, isa Any and is required.

Sample Error Message:

No type supplied / type is not a valid type constraint

Moose::Exception::InvalidTypeGivenToCreateParameterizedTypeConstraint

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::TypeConstraint.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Sample Error Message:

Could not parse type name (Foo) correctly

Moose::Exception::InvalidValueForIs

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

I do not understand this option (is => bar) on attribute (foo)

Moose::Exception::IsaDoesNotDoTheRole

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Cannot have an isa option and a does option if the isa does not do the does
on attribute (bar)

Moose::Exception::IsaLacksDoesMethod

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Cannot have an isa option which cannot ->does() on attribute (bar)

Moose::Exception::LazyAttributeNeedsADefault

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::EitherAttributeOrAttributeName.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate has_attribute and is optional.

$exception->attribute_name

This attribute is read-only, isa Str, has a predicate has_attribute_name and is optional.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef, has a predicate has_params and is optional.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You cannot have a lazy attribute (bar) without specifying a default value
for it

Moose::Exception::Legacy

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Messages:

Hello, I am an exception object
An inline error

Moose::Exception::MatchActionMustBeACodeRef

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::TypeConstraint.

ATTRIBUTES

$exception->action

This attribute is read-only, isa Any and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->to_match

This attribute is read-only, isa Any and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Sample Error Message:

Match action must be a CODE ref, not ARRAY(0x27a0748)

Moose::Exception::MessageParameterMustBeCodeRef

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The 'message' parameter must be a coderef

Moose::Exception::MetaclassIsAClassNotASubclassOfGivenMetaclass

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->metaclass

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Foo3 already has a metaclass, but it does not inherit Moose::Meta::Role
(Moose::Meta::Class=HASH(0x2d5d160)). You cannot make the same thing a role and
a class. Remove either Moose or Moose::Role.

Moose::Exception::MetaclassIsARoleNotASubclassOfGivenMetaclass

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->metaclass

This attribute is read-only, isa Str and is required.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

   Foo3 already has a metaclass, but it does not inherit Moose::Meta::Class
(Moose::Meta::Role=HASH(0x29d3c78)). You cannot make the same thing a role and a
class. Remove either Moose or Moose::Role.

Moose::Exception::MetaclassIsNotASubclassOfGivenMetaclass

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->metaclass

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Messages:

Foo4 already has a metaclass, but it does not inherit Moose::Meta::Role
(Class::MOP::Class=HASH(0x2c385a8)).
Foo4 already has a metaclass, but it does not inherit Moose::Meta::Class
(Class::MOP::Class=HASH(0x278a4a0)).

Moose::Exception::MetaclassMustBeASubclassOfMooseMetaClass

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The Metaclass Foo3 must be a subclass of Moose::Meta::Class.

Moose::Exception::MetaclassMustBeASubclassOfMooseMetaRole

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The Metaclass Foo3 must be a subclass of Moose::Meta::Role.

Moose::Exception::MetaclassMustBeDerivedFromClassMOPClass

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->class_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The metaclass (Foo) must be derived from Class::MOP::Class

Moose::Exception::MetaclassNotLoaded

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The Metaclass Foo2 must be loaded. (Perhaps you forgot to 'use Foo2'?)

Moose::Exception::MetaclassTypeIncompatible

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->metaclass_type

This attribute is read-only, isa Str and is required.

$exception->superclass_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The attribute_metaclass metaclass for Foo::All::Sub::Attribute
(Bar::Meta::Attribute) is not compatible with the attribute metaclass of its
superclass, Foo::All (Foo::Meta::Attribute)

Moose::Exception::MethodExpectedAMetaclassObject

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->metaclass

This attribute is read-only, isa Any and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The is_needed method expected a metaclass object as its arugment

Moose::Exception::MethodExpectsFewerArgs

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->maximum_args

This attribute is read-only, isa Int and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Cannot call substr with more than 3 arguments

Moose::Exception::MethodExpectsMoreArgs

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method_name

This attribute is read-only, isa Str and is required.

$exception->minimum_args

This attribute is read-only, isa Int and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Cannot call substr without at least 1 argument

Moose::Exception::MethodModifierNeedsMethodName

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass in a method name

Moose::Exception::MethodNameConflictInRoles

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->conflict

This attribute is read-only, isa ArrayRef[Moose::Meta::Role::Method::Conflicting] and is required.

This attribute has handles as follows: conflict_methods_count => count get_all_methods => elements get_method_at => get

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Messages:

Due to a method name conflict in roles 'Bar::Role' and 'Foo::Role', the
method 'foo' must be implemented or excluded by 'My::Foo::Class::Broken'
Due to method name conflicts in roles 'Bar2::Role' and 'Foo2::Role', the
methods 'bar' and 'foo' must be implemented or excluded by
'My::Foo::Class::Broken2'

Moose::Exception::MethodNameNotFoundInInheritanceHierarchy

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The method 'foo' was not found in the inheritance hierarchy for Foo

Moose::Exception::MethodNameNotGiven

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must define a method name to find

Moose::Exception::MOPAttributeNewNeedsAttributeName

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must provide a name for the attribute

Moose::Exception::MustDefineAMethodName

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Instance.

ATTRIBUTES

$exception->instance

This attribute is read-only, isa Object and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must define a method name

Moose::Exception::MustDefineAnAttributeName

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must define an attribute name

Moose::Exception::MustHaveAtLeastOneValueToEnumerate

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must have at least one value to enumerate through

Moose::Exception::MustPassAHashOfOptions

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass a hash of options

Moose::Exception::MustPassAMooseMetaRoleInstanceOrSubclass

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role

This attribute is read-only, isa Any and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass a Moose::Meta::Role instance (or a subclass)

Moose::Exception::MustPassAPackageNameOrAnExistingClassMOPPackageInstance

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Any and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass a package name or an existing Class::MOP::Package instance

Moose::Exception::MustPassEvenNumberOfArguments

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->args

This attribute is read-only, isa ArrayRef and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass an even number of arguments to set

Moose::Exception::MustPassEvenNumberOfAttributeOptions

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->options

This attribute is read-only, isa ArrayRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass an even number of attribute options

Moose::Exception::MustProvideANameForTheAttribute

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must provide a name for the attribute

Moose::Exception::MustSpecifyAtleastOneMethod

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Must specify at least one method

Moose::Exception::MustSpecifyAtleastOneRole

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Must specify at least one role

Moose::Exception::MustSpecifyAtleastOneRoleToApplicant

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->applicant

This attribute is read-only, isa Any and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Messages:

Must specify at least one role to apply to TestClass=HASH(0x2bee290)
Must specify at least one role to apply to Moose::Meta::Class=HASH(0x1a1f818)
Must specify at least one role to apply to Moose::Meta::Role=HASH(0x1f22d40)

Moose::Exception::MustSupplyAClassMOPAttributeInstance

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must supply an attribute which is a 'Class::MOP::Attribute' instance

Moose::Exception::MustSupplyADelegateToMethod

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must supply a delegate_to_method which is a method name or a CODE
reference

Moose::Exception::MustSupplyAMetaclass

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass a metaclass instance if you want to inline

Moose::Exception::MustSupplyAMooseMetaAttributeInstance

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must supply an attribute which is a 'Moose::Meta::Attribute' instance

Moose::Exception::MustSupplyAnAccessorTypeToConstructWith

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must supply an accessor_type to construct with

Moose::Exception::MustSupplyAnAttributeToConstructWith

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must supply an attribute to construct with

Moose::Exception::MustSupplyArrayRefAsCurriedArguments

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class, Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must supply a curried_arguments which is an ARRAY reference

Moose::Exception::MustSupplyPackageNameAndName

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must supply the package_name and name parameters

Moose::Exception::NeedsTypeConstraintUnionForTypeCoercionUnion

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::TypeConstraint.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_coercion_union_object

This attribute is read-only, isa Moose::Meta::TypeCoercion::Union and is required.

$exception->type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Sample Error Message:

You can only create a Moose::Meta::TypeCoercion::Union for a
Moose::Meta::TypeConstraint::Union, not a Str

Moose::Exception::NeitherAttributeNorAttributeNameIsGiven

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You need to give attribute or attribute_name or both

Moose::Exception::NeitherClassNorClassNameIsGiven

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Moose::Exception::NeitherRoleNorRoleNameIsGiven

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Moose::Exception::NeitherTypeNorTypeNameIsGiven

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Moose::Exception::NoAttributeFoundInSuperClass

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class, Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Could not find an attribute by the name of 'bar' to inherit from in Test2

Moose::Exception::NoBodyToInitializeInAnAbstractBaseClass

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->package_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

No body to initialize, Class::MOP::Method::Generated is an abstract base
class

Moose::Exception::NoCasesMatched

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->cases_to_be_matched

This attribute is read-only, isa ArrayRef and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->to_match

This attribute is read-only, isa Any and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

No cases matched for 123

Moose::Exception::NoConstraintCheckForTypeConstraint

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::TypeConstraint.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Sample Error Message:

Could not compile type constraint 'FooTypeConstraint' because no constraint
check

Moose::Exception::NoDestructorClassSpecified

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class and Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The 'inline_destructor' option is present, but no destructor class was
specified

Moose::Exception::NoImmutableTraitSpecifiedForClass

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class and Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

no immutable trait specified for Moose::Meta::Class=HASH(0x19a2280)

Moose::Exception::NoParentGivenToSubtype

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

A subtype cannot consist solely of a name, it must have a parent

Moose::Exception::OnlyInstancesCanBeCloned

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class and Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->instance

This attribute is read-only, isa Any and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You can only clone instances, (ARRAY(0x2162350)) is not a blessed instance

Moose::Exception::OperatorIsRequired

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

operator is required

Moose::Exception::OverloadConflictInSummation

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->overloaded_op

This attribute is read-only, isa Str and is required.

$exception->role_application

This attribute is read-only, isa Moose::Meta::Role::Application::RoleSummation and is required.

$exception->role_names

This attribute is an ArrayRef containing role names, if you want metaobjects associated with these role names, then call method roles on the exception object.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Moose::Exception::OverrideConflictInComposition

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method_name

This attribute is read-only, isa Str and is required.

$exception->role_being_applied_name

This attribute is read-only, isa Str and is required.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->two_overrides_found

This attribute is read-only, isa Bool, has a default value 0 and is required.

Sample Error Messages:

   Role 'Foo6' has encountered an 'override' method conflict during composition
(A local method of the same name as been found). This is a fatal error.
   Role 'Foo7' has encountered an 'override' method conflict during composition
(Two 'override' methods of the same name encountered). This is a fatal error.

Moose::Exception::OverrideConflictInSummation

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method_name

This attribute is read-only, isa Str and is required.

$exception->role_application

This attribute is read-only, isa Moose::Meta::Role::Application::RoleSummation and is required.

$exception->role_names

This attribute is an ArrayRef containing role names, if you want metaobjects associated with these role names, then call method roles on the exception object.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->two_overrides_found

This attribute is read-only, isa Bool, has a default value 0 and is required.

Sample Error Messages:

Role 'Foo3|Bar3' has encountered an 'override' method conflict during
composition (A local method of the same name has been found). This is a fatal
error.
We have encountered an 'override' method conflict during composition (Two
'override' methods of the same name encountered). This is a fatal error.

Moose::Exception::PackageDoesNotUseMooseExporter

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->is_loaded

This attribute is read-only, isa Bool and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->package

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Package in also (NoSuchThing) does not seem to use Moose::Exporter (is it
loaded?)

Moose::Exception::PackageNameAndNameParamsNotGivenToWrap

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->code

This attribute is read-only, isa CodeRef and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must supply the package_name and name parameters

Moose::Exception::PackagesAndModulesAreNotCachable

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class and Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->is_module

This attribute is read-only, isa Bool and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Messages:

Modules are not cacheable
Packages are not cacheable

Moose::Exception::ParameterIsNotSubtypeOfParent

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::TypeConstraint.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

$exception->type_parameter

This attribute is read-only, isa Str and is required.

Sample Error Message:

Int is not a subtype of Float

Moose::Exception::ReferencesAreNotAllowedAsDefault

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

References are not allowed as default values, you must wrap the default of
'foo' in a CODE reference (ex: sub { [] } and not [])

Moose::Exception::RequiredAttributeLacksInitialization

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

A required attribute must have either 'init_arg', 'builder', or 'default'

Moose::Exception::RequiredAttributeNeedsADefault

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

   You cannot have a required attribute (bar) without a default, builder, or an
init_arg

Moose::Exception::RequiredMethodsImportedByClass

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class and Moose::Exception::Role::Role.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->imported_method

This attribute is read-only, isa Moose::Meta::Role::Method::Required and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->missing_methods

This attribute is read-only, isa ArrayRef[Moose::Meta::Role::Method::Required] and is required.

This attribute has handles as follows: get_all_methods => elements get_method_at => get method_count => count

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Moose::Exception::RequiredMethodsNotImplementedByClass

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class and Moose::Exception::Role::Role.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->missing_methods

This attribute is read-only, isa ArrayRef[Moose::Meta::Role::Method::Required] and is required.

This attribute has handles as follows: get_all_methods => elements get_method_at => get method_count => count

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

'Foo3::Role|Bar3::Role|Baz3::Role' requires the method 'foo' to be
implemented by 'My::Foo::Class::Broken3'

Moose::Exception::RoleDoesTheExcludedRole

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->excluded_role_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->second_role_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The role Bar2 does the excluded role 'Bar3'

Moose::Exception::RoleExclusionConflict

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->roles

This attribute is read-only, isa ArrayRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Messages:

Conflict detected: Role Foo1 excludes role 'Bar1'
Conflict detected: Roles Foo1, Baz1 exclude role 'Bar1'

Moose::Exception::RoleNameRequired

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must supply a role name to look for

Moose::Exception::RoleNameRequiredForMooseMetaRole

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must supply a role name to look for

Moose::Exception::RolesDoNotSupportAugment

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Roles cannot support 'augment'

Moose::Exception::RolesDoNotSupportExtends

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Roles do not support 'extends' (you can use 'with' to specialize a role)

Moose::Exception::RolesDoNotSupportInner

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Roles cannot support 'inner'

Moose::Exception::RolesDoNotSupportRegexReferencesForMethodModifiers

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->modifier_type

This attribute is read-only, isa Str and is required.

$exception->role_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Roles do not currently support regex references for before method modifiers

Moose::Exception::RolesInCreateTakesAnArrayRef

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass an ARRAY ref of roles

Moose::Exception::RolesListMustBeInstancesOfMooseMetaRole

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->role

This attribute is read-only, isa Any and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The list of roles must be instances of Moose::Meta::Role, not foo

Moose::Exception::SingleParamsToNewMustBeHashRef

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Single parameters to new() must be a HASH ref

Moose::Exception::TriggerMustBeACodeRef

This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Trigger must be a CODE ref on attribute (bar)

Moose::Exception::TypeConstraintCannotBeUsedForAParameterizableType

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::TypeConstraint.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->parent_type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->parent_type_name );

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Sample Error Message:

The Int[Xyz] constraint cannot be used, because Int doesn't subtype or
coerce from a parameterizable type.

Moose::Exception::TypeConstraintIsAlreadyCreated

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::TypeConstraint.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->package_defined_in

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Sample Error Messages:

The type constraint 'Foo1' has already been created in Moose::Role and
cannot be created again in main
The type constraint 'Foo2' has already been created in Moose and cannot be
created again in main
The type constraint 'Foo3' has already been created in Moose and cannot be
created again in main

Moose::Exception::TypeParameterMustBeMooseMetaType

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::TypeConstraint.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_name

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Sample Error Message:

The type parameter must be a Moose meta type

Moose::Exception::UnableToCanonicalizeHandles

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Attribute.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->handles

This attribute is read-only, isa Any and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Unable to canonicalize the 'handles' option with GLOB(0x109d0b0)

Moose::Exception::UnableToCanonicalizeNonRolePackage

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Attribute.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->handles

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Unable to canonicalize the 'handles' option with Foo1 because its metaclass
is not a Moose::Meta::Role

Moose::Exception::UnableToRecognizeDelegateMetaclass

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Attribute.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->delegate_metaclass

This attribute is read-only, isa Any and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Unable to recognize the delegate metaclass 'Class::MOP::Package

Moose::Exception::UndefinedHashKeysPassedToMethod

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->hash_keys

This attribute is read-only, isa ArrayRef and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->method_name

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

Hash keys passed to set must be defined

Moose::Exception::UnionCalledWithAnArrayRefAndAdditionalArgs

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->args

This attribute is read-only, isa ArrayRef and is required.

$exception->array

This attribute is read-only, isa ArrayRef and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

union called with an array reference and additional arguments

Moose::Exception::UnionTakesAtleastTwoTypeNames

This class is a subclass of Moose::Exception.

ATTRIBUTES

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must pass in at least 2 type names to make a union

Moose::Exception::ValidationFailedForInlineTypeConstraint

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->class_name

This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->new_member

This attribute is read-only, isa Bool, has a predicate is_a_new_member, has a default value 0 and is optional.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type_constraint_message

This attribute is read-only, isa Str and is required.

$exception->value

This attribute is read-only, isa Any and is required.

Sample Error Messages:

   Attribute (foo) does not pass the type constraint because: Validation failed
for 'Int' with value 10.5
   Attribute (a4) does not pass the type constraint because: Validation failed
for 'ArrayRef' with value "invalid"
   Attribute (a4) does not pass the type constraint because: Validation failed
for 'ArrayRef' with value "invalid"
   Attribute (a4) does not pass the type constraint because: Validation failed
for 'ArrayRef' with value "invalid"
   Attribute (a4) does not pass the type constraint because: Validation failed
for 'ArrayRef' with value "invalid"
   Attribute (from_parameterizable) does not pass the type constraint because:
Validation failed for 'ParameterizableArrayRef[Int]'\E with value "?Hello"?
   A new member value for foo does not pass its type constraint because:
Validation failed for 'Int' with value 1.2

Moose::Exception::ValidationFailedForTypeConstraint

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Attribute.

ATTRIBUTES

$exception->attribute

This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

$exception->type

This attribute is read-only, isa Moose::Util::TypeConstraints and is required.

$exception->value

This attribute is read-only, isa Any and is required.

Sample Error Messages:

   Attribute (bar) does not pass the type constraint because: Validation failed
for 'Int' with value "test"
   Validation failed for 'OnlyPositiveInts' with value -123

Moose::Exception::WrapTakesACodeRefToBless

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->class

This attribute is read-only, isa Str and is required.

$exception->code

This attribute is read-only, isa Any and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

You must supply a CODE reference to bless, not (foo)

Moose::Exception::WrongTypeConstraintGiven

This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.

ATTRIBUTES

$exception->attribute_name

This attribute is read-only, isa Str and is required.

$exception->given_type

This attribute is read-only, isa Str and is required.

$exception->message

This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.

$exception->params

This attribute is read-only, isa HashRef and is required.

$exception->required_type

This attribute is read-only, isa Str and is required.

$exception->trace

This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.

Sample Error Message:

The type constraint for foo must be a subtype of ArrayRef but it's a Int

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) 2006 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.