Moose::...Manifest(3)

🌸 NAME 🌸

Moose::Manual::Exceptions::Manifest β€” aka Moose's Exception Types πŸ’– (the manpage header is Moose::...Manifest(3), and yeah, it's from the User Contributed Perl Documentation crew)


✨ VERSION ✨

version 2.4000 πŸŽ€


πŸ’… DESCRIPTION πŸ’…

okay bestie, this doc is literally the manifest β€” the full roster, the whole lineup β€” of every single exception class that gets thrown as a Moose internal error. Like, all of them. No cap. πŸ‘‘


πŸ¦‹ COMMON ELEMENTS πŸ¦‹

So unless it says otherwise, every class here is a subclass of Moose::Exception. Every. Single. One. πŸ’œ

And same deal β€” unless stated otherwise, all of them hand you these attribute reader methods:

🌟 $exception->message 🌟

This one returns the error message for the exception. That's it, that's the whole vibe.

🌟 $exception->trace 🌟

This one returns a Devel::StackTrace object. slay.


πŸ‘‘ EXCEPTION CLASSES πŸ‘‘

Moose ships with the following exception classes, and we're gonna go through every single one because we don't skip. πŸ’…


πŸ“ Moose::Exception::AccessorMustReadWrite

This class consumes the Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash roles. 🫢

This class has the following methods:

  • $exception->attribute_name() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

πŸ“ Moose::Exception::AddParameterizableTypeTakesParameterizableType

This class has the following methods:

  • $exception->type_name() β€” Returns a Str value.

πŸ“ Moose::Exception::AddRoleTakesAMooseMetaRoleInstance

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->role_to_be_added()

πŸ“ Moose::Exception::AddRoleToARoleTakesAMooseMetaRole

This class consumes the Moose::Exception::Role::Role role.

This class has the following methods:

  • $exception->role_name() β€” Returns a Str value.

This attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );
  • $exception->role_to_be_added()

πŸ“ Moose::Exception::ApplyTakesABlessedInstance

This class consumes the Moose::Exception::Role::Role role.

This class has the following methods:

  • $exception->param()
  • $exception->role_name() β€” Returns a Str value.

This attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

πŸ“ Moose::Exception::AttachToClassNeedsAClassMOPClassInstanceOrASubclass

This class consumes the Moose::Exception::Role::Attribute role.

This class has the following methods:

  • $exception->attribute() β€” Returns a Class::MOP::Attribute object.
  • $exception->class()

πŸ“ Moose::Exception::AttributeConflictInRoles

This class consumes the Moose::Exception::Role::Role role.

This class has the following methods:

  • $exception->attribute_name() β€” Returns a Str value.
  • $exception->role_name() β€” Returns a Str value.

This attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );
  • $exception->second_role_name() β€” Returns a Str value.

πŸ“ Moose::Exception::AttributeConflictInSummation

This class consumes the Moose::Exception::Role::AttributeName and Moose::Exception::Role::Role roles.

This class has the following methods:

  • $exception->attribute_name() β€” Returns a Str value.
  • $exception->role_name() β€” Returns a Str value.

This attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );
  • $exception->second_role_name() β€” Returns a Str value.

πŸ“ Moose::Exception::AttributeExtensionIsNotSupportedInRoles

This class consumes the Moose::Exception::Role::Role role.

This class has the following methods:

  • $exception->attribute_name() β€” Returns a Str value.
  • $exception->role_name() β€” Returns a Str value.

This attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

πŸ“ Moose::Exception::AttributeIsRequired

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->attribute_init_arg() β€” Returns a Str value.
  • $exception->attribute_name() β€” Returns a Str value.

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() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->params() β€” Returns a HashRef value.

πŸ“ Moose::Exception::AttributeMustBeAnClassMOPMixinAttributeCoreOrSubclass

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->attribute()
  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

πŸ“ Moose::Exception::AttributeNamesDoNotMatch

This class has the following methods:

  • $exception->attribute() β€” Returns a Class::MOP::Attribute object.
  • $exception->attribute_name() β€” Returns a Str value.

πŸ“ Moose::Exception::AttributeValueIsNotAnObject

This class consumes the Moose::Exception::Role::Attribute and Moose::Exception::Role::Instance roles.

This class has the following methods:

  • $exception->attribute() β€” Returns a Class::MOP::Attribute object.
  • $exception->given_value()
  • $exception->instance() β€” Returns an Object value.
  • $exception->method() β€” Returns a Moose::Meta::Method::Delegation object.

πŸ“ Moose::Exception::AttributeValueIsNotDefined

This class consumes the Moose::Exception::Role::Attribute and Moose::Exception::Role::Instance roles.

This class has the following methods:

  • $exception->attribute() β€” Returns a Class::MOP::Attribute object.
  • $exception->instance() β€” Returns an Object value.
  • $exception->method() β€” Returns a Moose::Meta::Method::Delegation object.

πŸ“ Moose::Exception::AutoDeRefNeedsArrayRefOrHashRef

This class consumes the Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash roles.

This class has the following methods:

  • $exception->attribute_name() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

πŸ“ Moose::Exception::BadOptionFormat

This class consumes the Moose::Exception::Role::Attribute role.

This class has the following methods:

  • $exception->attribute() β€” Returns a Class::MOP::Attribute object.
  • $exception->option_name() β€” Returns a Str value.
  • $exception->option_value()

πŸ“ Moose::Exception::BothBuilderAndDefaultAreNotAllowed

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

πŸ“ Moose::Exception::BuilderDoesNotExist

This class consumes the Moose::Exception::Role::Attribute and Moose::Exception::Role::Instance roles.

This class has the following methods:

  • $exception->attribute() β€” Returns a Class::MOP::Attribute object.
  • $exception->instance() β€” Returns an Object value.

πŸ“ Moose::Exception::BuilderMethodNotSupportedForAttribute

This class consumes the Moose::Exception::Role::Attribute and Moose::Exception::Role::Instance roles.

This class has the following methods:

  • $exception->attribute() β€” Returns a Class::MOP::Attribute object.
  • $exception->instance() β€” Returns an Object value.

πŸ“ Moose::Exception::BuilderMethodNotSupportedForInlineAttribute

This class consumes the Moose::Exception::Role::Class and Moose::Exception::Role::Instance roles.

This class has the following methods:

  • $exception->attribute_name() β€” Returns a Str value.
  • $exception->builder() β€” Returns a Str value.
  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->instance() β€” Returns an Object value.

πŸ“ Moose::Exception::BuilderMustBeAMethodName

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

πŸ“ Moose::Exception::CallingMethodOnAnImmutableInstance

This class has the following methods:

  • $exception->method_name() β€” Returns a Str value.

πŸ“ Moose::Exception::CallingReadOnlyMethodOnAnImmutableInstance

This class has the following methods:

  • $exception->method_name() β€” Returns a Str value.

πŸ“ Moose::Exception::CanExtendOnlyClasses

This class consumes the Moose::Exception::Role::Role role.

This class has the following methods:

  • $exception->role_name() β€” Returns a Str value.

This attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

πŸ“ Moose::Exception::CanOnlyConsumeRole

This class has the following methods:

  • $exception->role_name() β€” Returns a Str value.

πŸ“ Moose::Exception::CanOnlyWrapBlessedCode

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->code()
  • $exception->params() β€” Returns a HashRef value.

πŸ“ Moose::Exception::CanReblessOnlyIntoASubclass

This class consumes the Moose::Exception::Role::Class, Moose::Exception::Role::Instance, Moose::Exception::Role::InstanceClass, and Moose::Exception::Role::ParamsHash roles.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->instance() β€” Returns an Object value.
  • $exception->instance_class() β€” Returns a Str value.
  • $exception->params()

Returns a HashRef value. πŸ’–


Moose::Exception::CanReblessOnlyIntoASuperclass

This class consumes the Moose::Exception::Role::Class, Moose::Exception::Role::Instance, and Moose::Exception::Role::InstanceClass roles.

This class has the following methods:

  • $exception->class_name() β€” returns a Str value. ✨

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->instance() β€” returns an Object value. πŸ¦‹
  • $exception->instance_class() β€” returns a Str value. πŸ’…

Moose::Exception::CannotAddAdditionalTypeCoercionsToUnion

This class has the following methods:

  • $exception->type_coercion_union_object() β€” returns a Moose::Meta::TypeCoercion::Union object. πŸ‘‘

Moose::Exception::CannotAddAsAnAttributeToARole

This class consumes the Moose::Exception::Role::Role role.

This class has the following methods:

  • $exception->attribute_class() β€” returns a Str value. 🌸
  • $exception->role_name() β€” returns a Str value. ✨

This attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

Moose::Exception::CannotApplyBaseClassRolesToRole

This class consumes the Moose::Exception::Role::ParamsHash and Moose::Exception::Role::Role roles.

This class has the following methods:

  • $exception->params() β€” returns a HashRef value. πŸ’œ
  • $exception->role_name() β€” returns a Str value. ✨

This attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

Moose::Exception::CannotAssignValueToReadOnlyAccessor

This class consumes the Moose::Exception::Role::Class and Moose::Exception::Role::EitherAttributeOrAttributeName roles.

This class has the following methods:

  • $exception->attribute() β€” returns a Class::MOP::Attribute object. πŸŽ€
  • $exception->attribute_name() β€” returns a Str value. 🌸
  • $exception->class_name() β€” returns a Str value. ✨

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->params() β€” returns a HashRef value. πŸ’œ
  • $exception->value() β€” no type annotation on this one bestie, it just gives you the value πŸ’€

Moose::Exception::CannotAugmentIfLocalMethodPresent

This class consumes the Moose::Exception::Role::Class and Moose::Exception::Role::Method roles.

This class has the following methods:

  • $exception->class_name() β€” returns a Str value. ✨

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->method() β€” returns a Moose::Meta::Method object. πŸ¦‹

Moose::Exception::CannotAugmentNoSuperMethod

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” returns a Str value. 🌸
  • $exception->method_name() β€” returns a Str value. πŸ’…
  • $exception->params() β€” returns a HashRef value. πŸ’œ

Moose::Exception::CannotAutoDerefWithoutIsa

This class consumes the Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash roles.

This class has the following methods:

  • $exception->attribute_name() β€” returns a Str value. 🌸
  • $exception->params() β€” returns a HashRef value. πŸ’œ

Moose::Exception::CannotAutoDereferenceTypeConstraint

This class consumes the Moose::Exception::Role::Attribute, Moose::Exception::Role::Instance, and Moose::Exception::Role::TypeConstraint roles.

This class has the following methods:

  • $exception->attribute() β€” returns a Class::MOP::Attribute object. πŸŽ€
  • $exception->instance() β€” returns an Object value. πŸ¦‹
  • $exception->type_name() β€” returns a Str value. ✨

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint):

my $type_constraint =  Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Moose::Exception::CannotCalculateNativeType

This class consumes the Moose::Exception::Role::Instance role.

This class has the following methods:

  • $exception->instance() β€” returns an Object value. πŸ¦‹

Moose::Exception::CannotCallAnAbstractBaseMethod

This class has the following methods:

  • $exception->package_name() β€” returns a Str value. πŸ’…

Moose::Exception::CannotCallAnAbstractMethod

This class has no attributes except for "message" and trace(). ✨ iconic minimalism ✨

Moose::Exception::CannotCoerceAWeakRef

This class consumes the Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash roles.

This class has the following methods:

  • $exception->attribute_name() β€” returns a Str value. 🌸
  • $exception->params() β€” returns a HashRef value. πŸ’œ

Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion

This class consumes the Moose::Exception::Role::InvalidAttributeOptions, Moose::Exception::Role::ParamsHash, and Moose::Exception::Role::TypeConstraint roles.

This class has the following methods:

  • $exception->attribute_name() β€” returns a Str value. 🌸
  • $exception->params() β€” returns a HashRef value. πŸ’œ
  • $exception->type_name() β€” returns a Str value. ✨

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint):

my $type_constraint =  Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Moose::Exception::CannotCreateHigherOrderTypeWithoutATypeParameter

This class consumes the Moose::Exception::Role::TypeConstraint role.

This class has the following methods:

  • $exception->type_name() β€” returns a Str value. ✨

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint):

my $type_constraint =  Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Moose::Exception::CannotCreateMethodAliasLocalMethodIsPresent

This class consumes the Moose::Exception::Role::Method and Moose::Exception::Role::Role roles.

This class has the following methods:

  • $exception->aliased_method_name() β€” returns a Str value. 🌸
  • $exception->method() β€” returns a Moose::Meta::Method object. πŸ¦‹
  • $exception->role_being_applied_name() β€” returns a Str value. πŸ’…
  • $exception->role_name() β€” returns a Str value. ✨

This attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

Moose::Exception::CannotCreateMethodAliasLocalMethodIsPresentInClass

This class consumes the Moose::Exception::Role::Class, Moose::Exception::Role::Method, and Moose::Exception::Role::Role roles.

This class has the following methods:

  • $exception->aliased_method_name() β€” returns a Str value. 🌸
  • $exception->class_name() β€” returns a Str value. ✨

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->method() β€” returns a Moose::Meta::Method object. πŸ¦‹
  • $exception->role_name() β€” returns a Str value. ✨

This attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

Moose::Exception::CannotDelegateLocalMethodIsPresent

This class consumes the Moose::Exception::Role::Attribute and Moose::Exception::Role::Method roles.

This class has the following methods:

  • $exception->attribute() β€” returns a Class::MOP::Attribute object. πŸŽ€
  • $exception->method() β€” returns a Moose::Meta::Method object. πŸ¦‹

Moose::Exception::CannotDelegateWithoutIsa

This class consumes the Moose::Exception::Role::Attribute role.

This class has the following methods:

  • $exception->attribute() β€” returns a Class::MOP::Attribute object. πŸŽ€

Moose::Exception::CannotFindDelegateMetaclass

This class consumes the Moose::Exception::Role::Attribute role.

This class has the following methods:

  • $exception->attribute() β€” returns a Class::MOP::Attribute object. πŸŽ€

Moose::Exception::CannotFindType

This class has the following methods:

  • $exception->type_name() β€” returns a Str value. ✨

Moose::Exception::CannotFindTypeGivenToMatchOnType

This class has the following methods:

  • $exception->action() β€” no return type listed, it just hands you the action πŸ’€
  • $exception->to_match() β€” same deal, no return type noted 🫢
  • $exception->type() β€” and again, no return type on this one either 😭

Moose::Exception::CannotFixMetaclassCompatibility

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->class_name() β€” returns a Str value. ✨

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->metaclass_type() β€” returns a Str value. πŸ’…
  • $exception->superclass() β€” returns an Object value. πŸ¦‹

Moose::Exception::CannotGenerateInlineConstraint

This class consumes the Moose::Exception::Role::TypeConstraint role.

This class has the following methods:

  • $exception->parameterizable_type_object_name() β€” returns a Str value. ✨

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->type_name() β€” returns a Str value. ✨

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() β€” returns a Str value. 🌸

Moose::Exception::CannotInitializeMooseMetaRoleComposite

This class has the following methods:

  • $exception->args() β€” returns an ArrayRef value. πŸ’œ
  • $exception->old_meta() β€” no return type given, it just gives you the old meta 🫢
  • $exception->role_composite() β€” returns a Moose::Meta::Role::Composite object. πŸ‘‘

Moose::Exception::CannotInlineTypeConstraintCheck

This class consumes the Moose::Exception::Role::TypeConstraint role.

This class has the following methods:

  • $exception->type_name() β€” returns a Str value. ✨

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint):

my $type_constraint =  Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Moose::Exception::CannotLocatePackageInINC

okay so this one consumes the Moose::Exception::Role::ParamsHash role. πŸ’–

The methods it's got:

  • $exception->INC() β€” hands you back an ArrayRef value.
  • $exception->metaclass_name() β€” hands you back a Str value.
  • $exception->params() β€” hands you back a HashRef value.
  • $exception->possible_packages() β€” hands you back a Str value.
  • $exception->type() β€” hands you back a Str value.

Moose::Exception::CannotMakeMetaclassCompatible

this one consumes the Moose::Exception::Role::Class role ✨

The methods it's got:

  • $exception->class_name() β€” hands you back a Str value.

bestie you can use this attribute to fetch the metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->superclass_name() β€” hands you back a Str value.

Moose::Exception::CannotOverrideALocalMethod

this one consumes the Moose::Exception::Role::Role role πŸŽ€

The methods it's got:

  • $exception->method_name() β€” hands you back a Str value.
  • $exception->role_name() β€” hands you back a Str value.

and you can use this attribute to fetch the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

Moose::Exception::CannotOverrideBodyOfMetaMethods

this one consumes the Moose::Exception::Role::ParamsHash role πŸ¦‹

The methods it's got:

  • $exception->class() β€” hands you back a Str value.
  • $exception->params() β€” hands you back a HashRef value.

Moose::Exception::CannotOverrideLocalMethodIsPresent

this one consumes the Moose::Exception::Role::Class and Moose::Exception::Role::Method roles 🌸

The methods it's got:

  • $exception->class_name() β€” hands you back a Str value.

and this attribute? yeah you can use it to fetch the metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->method() β€” hands you back a Moose::Meta::Method object.

Moose::Exception::CannotOverrideNoSuperMethod

this one consumes the Moose::Exception::Role::ParamsHash role πŸ’…

The methods it's got:

  • $exception->class() β€” hands you back a Str value.
  • $exception->method_name() β€” hands you back a Str value.
  • $exception->params() β€” hands you back a HashRef value.

Moose::Exception::CannotRegisterUnnamedTypeConstraint

this class has no attributes except for "message" and trace(). that's it. that's the whole vibe 😌


Moose::Exception::CannotUseLazyBuildAndDefaultSimultaneously

this one consumes the Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash roles 🫢

The methods it's got:

  • $exception->attribute_name() β€” hands you back a Str value.
  • $exception->params() β€” hands you back a HashRef value.

Moose::Exception::CircularReferenceInAlso

The methods it's got:

  • $exception->also_parameter() β€” hands you back a Str value.
  • $exception->stack() β€” hands you back an ArrayRef value.

Moose::Exception::ClassDoesNotHaveInitMeta

this one consumes the Moose::Exception::Role::Class role 😭

The methods it's got:

  • $exception->class_name() β€” hands you back a Str value.

use this attribute to fetch the metaclass instance, periodt:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->traits() β€” hands you back an ArrayRef value.

Moose::Exception::ClassDoesTheExcludedRole

this one consumes the Moose::Exception::Role::Class and Moose::Exception::Role::Role roles πŸ”₯

The methods it's got:

  • $exception->class_name() β€” hands you back a Str value.

this attribute can be used for fetching the metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->excluded_role_name() β€” hands you back a Str value.
  • $exception->role_name() β€” hands you back a Str value.

this attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

Moose::Exception::ClassNamesDoNotMatch

The methods it's got:

  • $exception->class() β€” hands you back a Class::MOP::Class object.
  • $exception->class_name() β€” hands you back a Str value.

Moose::Exception::CloneObjectExpectsAnInstanceOfMetaclass

this one consumes the Moose::Exception::Role::Class role πŸ‘‘

The methods it's got:

  • $exception->class_name() β€” hands you back a Str value.

this attribute can be used for fetching the metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->instance()

Moose::Exception::CodeBlockMustBeACodeRef

this one consumes the Moose::Exception::Role::Instance and Moose::Exception::Role::ParamsHash roles 🌈

The methods it's got:

  • $exception->instance() β€” hands you back an Object value.
  • $exception->params() β€” hands you back a HashRef value.

Moose::Exception::CoercingWithoutCoercions

this one consumes the Moose::Exception::Role::TypeConstraint role ⭐

The methods it's got:

  • $exception->type_name() β€” hands you back a Str value.

this attribute can be used for fetching the type constraint (Moose::Meta::TypeConstraint):

my $type_constraint =  Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Moose::Exception::CoercionAlreadyExists

this one consumes the Moose::Exception::Role::Instance role πŸ’œ

The methods it's got:

  • $exception->constraint_name() β€” hands you back a Str value.
  • $exception->instance() β€” hands you back an Object value.

Moose::Exception::CoercionNeedsTypeConstraint

this one consumes the Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash roles 🧚

The methods it's got:

  • $exception->attribute_name() β€” hands you back a Str value.
  • $exception->params() β€” hands you back a HashRef value.

Moose::Exception::ConflictDetectedInCheckRoleExclusions

this one consumes the Moose::Exception::Role::Role role πŸ“

The methods it's got:

  • $exception->excluded_role_name() β€” hands you back a Str value.
  • $exception->role_name() β€” hands you back a Str value.

this attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

Moose::Exception::ConflictDetectedInCheckRoleExclusionsInToClass

this one consumes the Moose::Exception::Role::Class and Moose::Exception::Role::Role roles πŸ’–

The methods it's got:

  • $exception->class_name() β€” hands you back a Str value.

this attribute can be used for fetching the metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->role_name() β€” hands you back a Str value.

this attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

Moose::Exception::ConstructClassInstanceTakesPackageName

this class has no attributes except for "message" and trace(). iconic. nothing else to say πŸ’…


Moose::Exception::CouldNotCreateMethod

this one consumes the Moose::Exception::Role::Attribute role ✨

The methods it's got:

  • $exception->attribute() β€” hands you back a Class::MOP::Attribute object.
  • $exception->error() β€” hands you back a Str value.
  • $exception->option_name() β€” hands you back a Str value.
  • $exception->option_value()

Moose::Exception::CouldNotCreateWriter

this one consumes the Moose::Exception::Role::EitherAttributeOrAttributeName and Moose::Exception::Role::Instance roles πŸŽ€

The methods it's got:

  • $exception->attribute() β€” hands you back a Class::MOP::Attribute object.
  • $exception->attribute_name() β€” hands you back a Str value.
  • $exception->error() β€” hands you back a Str value.
  • $exception->instance() β€” hands you back an Object value.
  • $exception->params() β€” hands you back a HashRef value.

Moose::Exception::CouldNotEvalConstructor

The methods it's got:

  • $exception->constructor_method() β€” hands you back a Class::MOP::Method::Constructor object.
  • $exception->error() β€” hands you back a Str value.
  • $exception->source() β€” hands you back a Str value.

Moose::Exception::CouldNotEvalDestructor

The methods it's got:

  • $exception->error() β€” hands you back a Str value.
  • $exception->method_destructor_object() β€” hands you back a Moose::Meta::Method::Destructor object.
  • $exception->source() β€” hands you back a Str value.

Moose::Exception::CouldNotFindTypeConstraintToCoerceFrom

this one consumes the Moose::Exception::Role::Instance role πŸ¦‹

The methods it's got:

  • $exception->constraint_name() β€” hands you back a Str value.
  • $exception->instance() β€” hands you back an Object value.

Moose::Exception::CouldNotGenerateInlineAttributeMethod

this one consumes the Moose::Exception::Role::Instance role 🌸

The methods it's got:

  • $exception->error() β€” hands you back a Moose::Exception|Str value.
  • $exception->instance() β€” hands you back an Object value.
  • $exception->option() β€” hands you back a Str value.

Moose::Exception::CouldNotLocateTypeConstraintForUnion

this one consumes the Moose::Exception::Role::TypeConstraint role 🫢

The methods it's got:

  • $exception->type_name() β€” hands you back a Str value.

this attribute can be used for fetching the type constraint (Moose::Meta::TypeConstraint):

my $type_constraint =  Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Moose::Exception::CouldNotParseType

The methods it's got:

  • $exception->position() β€” hands you back an Int value.
  • $exception->type() β€” hands you back a Str value.

Moose::Exception::CreateMOPClassTakesArrayRefOfAttributes

this one consumes the Moose::Exception::Role::ParamsHash and Moose::Exception::Role::RoleForCreateMOPClass roles 😭

The methods it's got:

  • $exception->class() β€” hands you back a Str value.
  • $exception->params() β€” hands you back a HashRef value.

Moose::Exception::CreateMOPClassTakesArrayRefOfSuperclasses

this one consumes the Moose::Exception::Role::ParamsHash and Moose::Exception::Role::RoleForCreateMOPClass roles πŸ”₯

This class has the following methods:

  • $exception->class() β€” hands you a Str value back πŸ’–
  • $exception->params() β€” hands you a HashRef value back ✨

🌸 Moose::Exception::CreateMOPClassTakesHashRefOfMethods

This class consumes the Moose::Exception::Role::ParamsHash and Moose::Exception::Role::RoleForCreateMOPClass roles. She's got range, she contains multitudes πŸ’…

This class has the following methods:

  • $exception->class() β€” returns a Str value πŸŽ€
  • $exception->params() β€” returns a HashRef value πŸŽ€

πŸ¦‹ Moose::Exception::CreateTakesArrayRefOfRoles

This class consumes the Moose::Exception::Role::ParamsHash and Moose::Exception::Role::RoleForCreate roles.

This class has the following methods:

  • $exception->attribute_class() β€” returns a Str value ✨
  • $exception->params() β€” returns a HashRef value ✨

🌈 Moose::Exception::CreateTakesHashRefOfAttributes

This class consumes the Moose::Exception::Role::ParamsHash and Moose::Exception::Role::RoleForCreate roles.

This class has the following methods:

  • $exception->attribute_class() β€” returns a Str value πŸ’œ
  • $exception->params() β€” returns a HashRef value πŸ’œ

⭐ Moose::Exception::CreateTakesHashRefOfMethods

This class consumes the Moose::Exception::Role::ParamsHash and Moose::Exception::Role::RoleForCreate roles.

This class has the following methods:

  • $exception->attribute_class() β€” returns a Str value 🫢
  • $exception->params() β€” returns a HashRef value 🫢

πŸ“ Moose::Exception::DefaultToMatchOnTypeMustBeCodeRef

This class has the following methods:

  • $exception->cases_to_be_matched() β€” returns an ArrayRef value πŸ‘€
  • $exception->default_action() β€” literally just vibes, no documented return bestie 😭
  • $exception->to_match() β€” same, no return type listed, she's mysterious πŸ’€

🧚 Moose::Exception::DelegationToAClassWhichIsNotLoaded

This class consumes the Moose::Exception::Role::Attribute role.

This class has the following methods:

  • $exception->attribute() β€” returns a Class::MOP::Attribute object πŸ”₯
  • $exception->class_name() β€” returns a Str value πŸ”₯

πŸ’– Moose::Exception::DelegationToARoleWhichIsNotLoaded

This class consumes the Moose::Exception::Role::Attribute role.

This class has the following methods:

  • $exception->attribute() β€” returns a Class::MOP::Attribute object ✨
  • $exception->role_name() β€” returns a Str value ✨

πŸŽ€ Moose::Exception::DelegationToATypeWhichIsNotAClass

This class consumes the Moose::Exception::Role::Attribute role.

This class has the following methods:

  • $exception->attribute() β€” returns a Class::MOP::Attribute object 🌸

πŸ‘‘ Moose::Exception::DoesRequiresRoleName

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->class_name() β€” returns a Str value πŸ’…

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

πŸ’œ Moose::Exception::EnumCalledWithAnArrayRefAndAdditionalArgs

This class has the following methods:

  • $exception->args() β€” returns an ArrayRef value 🌈
  • $exception->array() β€” returns an ArrayRef value 🌈

🫢 Moose::Exception::EnumValuesMustBeString

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” returns a Str value ⭐
  • $exception->params() β€” returns a HashRef value ⭐
  • $exception->value() β€” no return type given, she's just out here existing πŸ’€

πŸ”₯ Moose::Exception::ExtendsMissingArgs

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->class_name() β€” returns a Str value πŸ“

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

🧚 Moose::Exception::HandlesMustBeAHashRef

This class consumes the Moose::Exception::Role::Instance role.

This class has the following methods:

  • $exception->given_handles() β€” no return type listed, keep scrolling bestie πŸ™ˆ
  • $exception->instance() β€” returns an Object value πŸ’–

✨ Moose::Exception::IllegalInheritedOptions

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->illegal_options() β€” returns an ArrayRef value πŸŽ€
  • $exception->params() β€” returns a HashRef value πŸŽ€

🌸 Moose::Exception::IllegalMethodTypeToAddMethodModifier

This class has the following methods:

  • $exception->class_or_object() β€” no return type, mysterious queen πŸ‘‘
  • $exception->modifier_name() β€” returns a Str value πŸ’…
  • $exception->params() β€” returns an ArrayRef value πŸ’…

🌈 Moose::Exception::IncompatibleMetaclassOfSuperclass

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->class_meta_type() β€” returns a Str value ⭐
  • $exception->class_name() β€” returns a Str value ⭐

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->superclass_meta_type() β€” returns a Str value ⭐
  • $exception->superclass_name() β€” returns a Str value ⭐

πŸ“ Moose::Exception::InitMetaRequiresClass

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->params() β€” returns a HashRef value πŸ¦‹

πŸ’œ Moose::Exception::InitializeTakesUnBlessedPackageName

This class has the following methods:

  • $exception->package_name() β€” no return type documented, that's all she gives us πŸ’€

🫢 Moose::Exception::InstanceBlessedIntoWrongClass

This class consumes the Moose::Exception::Role::Class, Moose::Exception::Role::Instance, and Moose::Exception::Role::ParamsHash roles. Three roles, one icon πŸ’…

This class has the following methods:

  • $exception->class_name() β€” returns a Str value πŸ”₯

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->instance() β€” returns an Object value πŸ”₯
  • $exception->params() β€” returns a HashRef value πŸ”₯

🧚 Moose::Exception::InstanceMustBeABlessedReference

This class consumes the Moose::Exception::Role::Class and Moose::Exception::Role::ParamsHash roles.

This class has the following methods:

  • $exception->class_name() β€” returns a Str value ✨

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->instance() β€” no return type listed, iconic and unknowable πŸ™ˆ
  • $exception->params() β€” returns a HashRef value ✨

πŸŽ€ Moose::Exception::InvalidArgPassedToMooseUtilMetaRole

This class has the following methods:

  • $exception->argument() β€” no return type given, she's keeping it cute and vague πŸ’–

πŸ‘‘ Moose::Exception::InvalidArgumentToMethod

This class has the following methods:

  • $exception->argument() β€” no return type, sorry bestie πŸ’€
  • $exception->argument_noun() β€” returns a Str value πŸ’…
  • $exception->method_name() β€” returns a Str value πŸ’…
  • $exception->ordinal() β€” returns a Str value πŸ’…
  • $exception->type() β€” returns a Str value πŸ’…
  • $exception->type_of_argument() β€” returns a Str value πŸ’…

🌸 Moose::Exception::InvalidArgumentsToTraitAliases

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->alias() β€” no return type documented πŸ™ˆ
  • $exception->class_name() β€” returns a Str value 🌈

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->package_name() β€” returns a Str value 🌈

⭐ Moose::Exception::InvalidBaseTypeGivenToCreateParameterizedTypeConstraint

This class consumes the Moose::Exception::Role::TypeConstraint role.

This class has the following methods:

  • $exception->type_name() β€” returns a Str value πŸ“

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint):

my $type_constraint =  Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );
Note the double space in that line, bestie β€” it's = Moose::Util.... Copy it exactly, no cap 🫢

πŸ¦‹ Moose::Exception::InvalidHandleValue

This class consumes the Moose::Exception::Role::Instance role.

This class has the following methods:

  • $exception->handle_value() β€” no return type listed πŸ’€
  • $exception->instance() β€” returns an Object value πŸ’–

πŸ’œ Moose::Exception::InvalidHasProvidedInARole

This class consumes the Moose::Exception::Role::Role role.

This class has the following methods:

  • $exception->attribute_name() β€” returns a Str value πŸŽ€
  • $exception->role_name() β€” returns a Str value πŸŽ€

This attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

🧚 Moose::Exception::InvalidNameForType

This class has the following methods:

  • $exception->name() β€” returns a Str value ✨

πŸ”₯ Moose::Exception::InvalidOverloadOperator

This class has the following methods:

  • $exception->operator() β€” returns a Defined value πŸ‘‘

🌈 Moose::Exception::InvalidRoleApplication

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->application() β€” no return type documented πŸ™ˆ
  • $exception->class_name() β€” returns a Str value πŸ’…

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

πŸ“ Moose::Exception::InvalidTypeConstraint

This class has the following methods:

  • $exception->registry_object() β€” returns a Moose::Meta::TypeConstraint::Registry object πŸ”₯
  • $exception->type() β€” no return type, mysterious πŸ’€

🫢 Moose::Exception::InvalidTypeGivenToCreateParameterizedTypeConstraint

This class consumes the Moose::Exception::Role::TypeConstraint role.

This class has the following methods:

  • $exception->type_name() β€” returns a Str value 🌸

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint):

my $type_constraint =  Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );
Same double space situation as before β€” keep it exactly as written, no editing πŸ’…

πŸ’– Moose::Exception::InvalidValueForIs

This class consumes the Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash roles.

This class has the following methods:

  • $exception->attribute_name() β€” returns a Str value ⭐
  • $exception->params() β€” returns a HashRef value ⭐

πŸ‘‘ Moose::Exception::IsaDoesNotDoTheRole

This class consumes the Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash roles.

This class has the following methods:

  • $exception->attribute_name() β€” returns a Str value πŸ¦‹
  • $exception->params() β€” returns a HashRef value πŸ¦‹

Moose::Exception::IsaLacksDoesMethod πŸ¦‹

okay so this class consumes the Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash roles, bestie. it's giving very role-heavy πŸ’…

This class has the following methods:

  • $exception->attribute_name() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::LazyAttributeNeedsADefault 😴

This class consumes the Moose::Exception::Role::EitherAttributeOrAttributeName role.

This class has the following methods:

  • $exception->attribute() β€” Returns a Class::MOP::Attribute object.
  • $exception->attribute_name() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::Legacy πŸ‘‘

This class has no attributes except for "message" and trace(). that's it, that's the whole class, and honestly? iconic minimalism ✨


Moose::Exception::MOPAttributeNewNeedsAttributeName πŸŽ€

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::MatchActionMustBeACodeRef πŸ”₯

This class consumes the Moose::Exception::Role::TypeConstraint role.

This class has the following methods:

  • $exception->action()
  • $exception->to_match()
  • $exception->type_name() β€” Returns a Str value.

fr fr, this attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint):

my $type_constraint =  Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Moose::Exception::MessageParameterMustBeCodeRef πŸ’¬

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::MetaclassIsAClassNotASubclassOfGivenMetaclass 🌸

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

this attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->metaclass() β€” Returns a Str value.

Moose::Exception::MetaclassIsARoleNotASubclassOfGivenMetaclass 🧚

This class consumes the Moose::Exception::Role::Role role.

This class has the following methods:

  • $exception->metaclass() β€” Returns a Str value.
  • $exception->role_name() β€” Returns a Str value.

This attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

Moose::Exception::MetaclassIsNotASubclassOfGivenMetaclass πŸ’œ

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->metaclass() β€” Returns a Str value.

Moose::Exception::MetaclassMustBeASubclassOfMooseMetaClass 🌈

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

Moose::Exception::MetaclassMustBeASubclassOfMooseMetaRole ⭐

This class consumes the Moose::Exception::Role::Role role.

This class has the following methods:

  • $exception->role_name() β€” Returns a Str value.

This attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

Moose::Exception::MetaclassMustBeDerivedFromClassMOPClass πŸŽ€

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

Moose::Exception::MetaclassNotLoaded πŸ“¦

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

Moose::Exception::MetaclassTypeIncompatible πŸ’€

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->metaclass_type() β€” Returns a Str value.
  • $exception->superclass_name() β€” Returns a Str value.

Moose::Exception::MethodExpectedAMetaclassObject πŸ¦‹

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->metaclass()

Moose::Exception::MethodExpectsFewerArgs 🀏

This class has the following methods:

  • $exception->maximum_args() β€” Returns an Int value.
  • $exception->method_name() β€” Returns a Str value.

Moose::Exception::MethodExpectsMoreArgs πŸ™Œ

This class has the following methods:

  • $exception->method_name() β€” Returns a Str value.
  • $exception->minimum_args() β€” Returns an Int value.

Moose::Exception::MethodModifierNeedsMethodName ✨

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

Moose::Exception::MethodNameConflictInRoles βš”οΈ

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->conflict() β€” Returns an ArrayRef[Moose::Meta::Role::Method::Conflicting] value.

Moose::Exception::MethodNameNotFoundInInheritanceHierarchy πŸ”

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->method_name() β€” Returns a Str value.

Moose::Exception::MethodNameNotGiven 🀷

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

Moose::Exception::MustDefineAMethodName πŸ“

This class consumes the Moose::Exception::Role::Instance role.

This class has the following methods:

  • $exception->instance() β€” Returns an Object value.

Moose::Exception::MustDefineAnAttributeName 🏷️

This class consumes the Moose::Exception::Role::Class role.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

Moose::Exception::MustDefineAnOverloadOperator βž•

This class consumes the Moose::Exception::Role::Instance role.

This class has the following methods:

  • $exception->instance() β€” Returns an Object value.

Moose::Exception::MustHaveAtLeastOneValueToEnumerate πŸ”’

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::MustPassAHashOfOptions πŸ—‚οΈ

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::MustPassAMooseMetaRoleInstanceOrSubclass 🎭

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->role()

Moose::Exception::MustPassAPackageNameOrAnExistingClassMOPPackageInstance πŸ“¦

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class()
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::MustPassEvenNumberOfArguments ✌️

This class has the following methods:

  • $exception->args() β€” Returns an ArrayRef value.
  • $exception->method_name() β€” Returns a Str value.

Moose::Exception::MustPassEvenNumberOfAttributeOptions 🎯

This class has the following methods:

  • $exception->attribute_name() β€” Returns a Str value.
  • $exception->options() β€” Returns an ArrayRef value.

Moose::Exception::MustProvideANameForTheAttribute πŸ’–

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::MustSpecifyAtleastOneMethod πŸ› οΈ

This class consumes the Moose::Exception::Role::Role role.

This class has the following methods:

  • $exception->role_name() β€” Returns a Str value.

This attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

Moose::Exception::MustSpecifyAtleastOneRole πŸŽͺ

This class consumes the Moose::Exception::Role::Role role.

This class has the following methods:

  • $exception->role_name() β€” Returns a Str value.

This attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

Moose::Exception::MustSpecifyAtleastOneRoleToApplicant 🫢

This class has the following methods:

  • $exception->applicant()

Moose::Exception::MustSupplyAClassMOPAttributeInstance πŸ“

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->params() β€” hands you back a HashRef value. πŸ’…

Moose::Exception::MustSupplyADelegateToMethod πŸ’–

This class consumes the Moose::Exception::Role::ParamsHash role. Lowkey a whole mood.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::MustSupplyAMetaclass πŸŽ€

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::MustSupplyAMooseMetaAttributeInstance ✨

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::MustSupplyAnAccessorTypeToConstructWith 🌸

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::MustSupplyAnAttributeToConstructWith πŸ¦‹

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::MustSupplyArrayRefAsCurriedArguments πŸ‘‘

This class consumes the Moose::Exception::Role::Class and Moose::Exception::Role::ParamsHash roles. Two roles, one icon.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::MustSupplyPackageNameAndName πŸ“

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::NeedsTypeConstraintUnionForTypeCoercionUnion 🧚

This class consumes the Moose::Exception::Role::TypeConstraint role.

This class has the following methods:

  • $exception->type_coercion_union_object() β€” Returns a Moose::Meta::TypeCoercion::Union object.
  • $exception->type_name() β€” Returns a Str value.

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint):

my $type_constraint =  Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Moose::Exception::NeitherAttributeNorAttributeNameIsGiven πŸ’€

This class has no attributes except for "message" and trace().

Moose::Exception::NeitherClassNorClassNameIsGiven πŸ’€

This class has no attributes except for "message" and trace().

Moose::Exception::NeitherRoleNorRoleNameIsGiven πŸ’€

This class has no attributes except for "message" and trace().

Moose::Exception::NeitherTypeNorTypeNameIsGiven πŸ’€

This class has no attributes except for "message" and trace().

Moose::Exception::NoAttributeFoundInSuperClass πŸ”₯

This class consumes the Moose::Exception::Role::Class, Moose::Exception::Role::InvalidAttributeOptions, and Moose::Exception::Role::ParamsHash roles. Three roles, bestie, it's giving overachiever.

This class has the following methods:

  • $exception->attribute_name() β€” Returns a Str value.
  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::NoBodyToInitializeInAnAbstractBaseClass 🫢

This class has the following methods:

  • $exception->package_name() β€” Returns a Str value.

Moose::Exception::NoCasesMatched 🌈

This class has the following methods:

  • $exception->cases_to_be_matched() β€” Returns an ArrayRef value.
  • $exception->to_match()

Moose::Exception::NoConstraintCheckForTypeConstraint πŸ’œ

This class consumes the Moose::Exception::Role::TypeConstraint role.

This class has the following methods:

  • $exception->type_name() β€” Returns a Str value.

This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint):

my $type_constraint =  Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

Moose::Exception::NoDestructorClassSpecified ⭐

This class consumes the Moose::Exception::Role::Class and Moose::Exception::Role::ParamsHash roles.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::NoImmutableTraitSpecifiedForClass πŸ‘‘

This class consumes the Moose::Exception::Role::Class and Moose::Exception::Role::ParamsHash roles.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::NoParentGivenToSubtype 😭

This class has the following methods:

  • $exception->name() β€” Returns a Str value.

Moose::Exception::OnlyInstancesCanBeCloned πŸ™ˆ

This class consumes the Moose::Exception::Role::Class and Moose::Exception::Role::ParamsHash roles.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->instance()
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::OperatorIsRequired πŸ’…

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::OverloadConflictInSummation πŸŽ€

This class has the following methods:

  • $exception->overloaded_op() β€” Returns a Str value.
  • $exception->role_application() β€” Returns a Moose::Meta::Role::Application::RoleSummation object.
  • $exception->role_names()
  • $exception->elements()

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.

Moose::Exception::OverloadRequiresAMetaClass πŸ’€

This class has no attributes except for "message" and trace().

Moose::Exception::OverloadRequiresAMetaMethod πŸ’€

This class has no attributes except for "message" and trace().

Moose::Exception::OverloadRequiresAMetaOverload πŸ’€

This class has no attributes except for "message" and trace().

Moose::Exception::OverloadRequiresAMethodNameOrCoderef πŸ’€

This class has no attributes except for "message" and trace().

Moose::Exception::OverloadRequiresAnOperator πŸ’€

This class has no attributes except for "message" and trace().

Moose::Exception::OverloadRequiresNamesForCoderef πŸ’€

This class has no attributes except for "message" and trace().

Moose::Exception::OverrideConflictInComposition πŸ¦‹

This class consumes the Moose::Exception::Role::Role role.

This class has the following methods:

  • $exception->method_name() β€” Returns a Str value.
  • $exception->role_being_applied_name() β€” Returns a Str value.
  • $exception->role_name() β€” Returns a Str value.

This attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );
  • $exception->two_overrides_found() β€” Returns a Bool value.

Moose::Exception::OverrideConflictInSummation 🌸

This class has the following methods:

  • $exception->method_name() β€” Returns a Str value.
  • $exception->role_application() β€” Returns a Moose::Meta::Role::Application::RoleSummation object.
  • $exception->role_names()
  • $exception->elements()

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->two_overrides_found() β€” Returns a Bool value.

Moose::Exception::PackageDoesNotUseMooseExporter πŸ“

This class has the following methods:

  • $exception->is_loaded() β€” Returns a Bool value.
  • $exception->package() β€” Returns a Str value.

Moose::Exception::PackageNameAndNameParamsNotGivenToWrap ✨

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->class() β€” Returns a Str value.
  • $exception->code() β€” Returns a CodeRef value.
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::PackagesAndModulesAreNotCachable πŸ”₯

This class consumes the Moose::Exception::Role::Class and Moose::Exception::Role::ParamsHash roles.

This class has the following methods:

  • $exception->class_name() β€” Returns a Str value.

This attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->is_module() β€” Returns a Bool value.
  • $exception->params() β€” Returns a HashRef value.

Moose::Exception::ParameterIsNotSubtypeOfParent πŸ’œ

This class consumes the Moose::Exception::Role::TypeConstraint role.

This class has the following methods:

  • $exception->type_name() β€” Returns a Str value.

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() β€” Returns a Str value.

Moose::Exception::ReferencesAreNotAllowedAsDefault πŸŽ€

This class consumes the Moose::Exception::Role::ParamsHash role.

This class has the following methods:

  • $exception->attribute_name() β€” Returns a Str value.
  • $exception->class() β€” Returns a Str value.
  • $exception->params() β€” Returns a HashRef value.

🫢 Moose::Exception::RequiredAttributeLacksInitialization

okay so this class consumes the Moose::Exception::Role::ParamsHash role. periodt.

This class has the following methods:

  • $exception->class() β€” hands you back a Str value. πŸ’–
  • $exception->params() β€” hands you back a HashRef value.

🌸 Moose::Exception::RequiredAttributeNeedsADefault

this one consumes the Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash roles. double slay. ✨

This class has the following methods:

  • $exception->attribute_name() β€” returns a Str value.
  • $exception->params() β€” returns a HashRef value.

πŸ¦‹ Moose::Exception::RequiredMethodsImportedByClass

consumes the Moose::Exception::Role::Class and Moose::Exception::Role::Role roles. πŸ’…

This class has the following methods:

  • $exception->class_name() β€” returns a Str value.

bestie, this attribute can be used for fetching the metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->imported_method() β€” returns a Moose::Meta::Role::Method::Required object.
  • $exception->missing_methods() β€” returns an ArrayRef[Moose::Meta::Role::Method::Required] value.
  • $exception->role_name() β€” returns a Str value.

this attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

🌈 Moose::Exception::RequiredMethodsNotImplementedByClass

consumes the Moose::Exception::Role::Class and Moose::Exception::Role::Role roles. iconic. πŸ‘‘

This class has the following methods:

  • $exception->class_name() β€” returns a Str value.

this attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->missing_methods() β€” returns an ArrayRef[Moose::Meta::Role::Method::Required] value.
  • $exception->role_name() β€” returns a Str value.

this attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

πŸ’œ Moose::Exception::RoleDoesTheExcludedRole

consumes the Moose::Exception::Role::Role role. πŸ’…

This class has the following methods:

  • $exception->excluded_role_name() β€” returns a Str value.
  • $exception->role_name() β€” returns a Str value.

this attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );
  • $exception->second_role_name() β€” returns a Str value.

πŸŽ€ Moose::Exception::RoleExclusionConflict

consumes the Moose::Exception::Role::Role role. fr fr. 🫢

This class has the following methods:

  • $exception->role_name() β€” returns a Str value.

this attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );
  • $exception->roles() β€” returns an ArrayRef value.

⭐ Moose::Exception::RoleNameRequired

consumes the Moose::Exception::Role::Class role. 😭

This class has the following methods:

  • $exception->class_name() β€” returns a Str value.

this attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );

🧚 Moose::Exception::RoleNameRequiredForMooseMetaRole

consumes the Moose::Exception::Role::Role role. no cap. ✨

This class has the following methods:

  • $exception->role_name() β€” returns a Str value.

this attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

πŸ’€ Moose::Exception::RolesDoNotSupportAugment

this class has no attributes except for "message" and trace(). that's it, that's the whole vibe. πŸ™ˆ


πŸ’€ Moose::Exception::RolesDoNotSupportExtends

same energy: no attributes except for "message" and trace(). πŸ’…


πŸ’€ Moose::Exception::RolesDoNotSupportInner

no attributes except for "message" and trace(). periodt. πŸ‘‘


πŸ”₯ Moose::Exception::RolesDoNotSupportRegexReferencesForMethodModifiers

consumes the Moose::Exception::Role::Role role. 🌸

This class has the following methods:

  • $exception->modifier_type() β€” returns a Str value.
  • $exception->role_name() β€” returns a Str value.

this attribute can be used for fetching the class's metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );

πŸ“ Moose::Exception::RolesInCreateTakesAnArrayRef

consumes the Moose::Exception::Role::ParamsHash role. πŸ¦‹

This class has the following methods:

  • $exception->params() β€” returns a HashRef value.

🌈 Moose::Exception::RolesListMustBeInstancesOfMooseMetaRole

consumes the Moose::Exception::Role::ParamsHash role. πŸ’–

This class has the following methods:

  • $exception->class() β€” returns a Str value.
  • $exception->params() β€” returns a HashRef value.
  • $exception->role()

🧚 Moose::Exception::SingleParamsToNewMustBeHashRef

no attributes except for "message" and trace(). that's the whole thing, bestie. πŸ’…


πŸ’œ Moose::Exception::TriggerMustBeACodeRef

consumes the Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash roles. ✨

This class has the following methods:

  • $exception->attribute_name() β€” returns a Str value.
  • $exception->params() β€” returns a HashRef value.

πŸ‘‘ Moose::Exception::TypeConstraintCannotBeUsedForAParameterizableType

consumes the Moose::Exception::Role::TypeConstraint role. 🌟

This class has the following methods:

  • $exception->parent_type_name() β€” returns a Str value.

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->type_name() β€” returns a Str value.

this attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint):

my $type_constraint =  Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

πŸŽ€ Moose::Exception::TypeConstraintIsAlreadyCreated

consumes the Moose::Exception::Role::TypeConstraint role. πŸ”₯

This class has the following methods:

  • $exception->package_defined_in() β€” returns a Str value.
  • $exception->type_name() β€” returns a Str value.

this attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint):

my $type_constraint =  Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

🌸 Moose::Exception::TypeParameterMustBeMooseMetaType

consumes the Moose::Exception::Role::TypeConstraint role. 🫢

This class has the following methods:

  • $exception->type_name() β€” returns a Str value.

this attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint):

my $type_constraint =  Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );

πŸ¦‹ Moose::Exception::UnableToCanonicalizeHandles

consumes the Moose::Exception::Role::Attribute role. πŸ’–

This class has the following methods:

  • $exception->attribute() β€” returns a Class::MOP::Attribute object.
  • $exception->handles()

πŸ’… Moose::Exception::UnableToCanonicalizeNonRolePackage

consumes the Moose::Exception::Role::Attribute role. ✨

This class has the following methods:

  • $exception->attribute() β€” returns a Class::MOP::Attribute object.
  • $exception->handles() β€” returns a Str value.

πŸ’€ Moose::Exception::UnableToRecognizeDelegateMetaclass

consumes the Moose::Exception::Role::Attribute role. 😭

This class has the following methods:

  • $exception->attribute() β€” returns a Class::MOP::Attribute object.
  • $exception->delegate_metaclass()

⭐ Moose::Exception::UndefinedHashKeysPassedToMethod

This class has the following methods:

  • $exception->hash_keys() β€” returns an ArrayRef value.
  • $exception->method_name() β€” returns a Str value.

🌈 Moose::Exception::UnionCalledWithAnArrayRefAndAdditionalArgs

This class has the following methods:

  • $exception->args() β€” returns an ArrayRef value.
  • $exception->array() β€” returns an ArrayRef value.

πŸ’€ Moose::Exception::UnionTakesAtleastTwoTypeNames

no attributes except for "message" and trace(). that's the whole serve. πŸ‘‘


🧚 Moose::Exception::ValidationFailedForInlineTypeConstraint

consumes the Moose::Exception::Role::Class role. 🌸

This class has the following methods:

  • $exception->attribute_name() β€” returns a Str value.
  • $exception->class_name() β€” returns a Str value.

this attribute can be used for fetching metaclass instance:

my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
  • $exception->new_member() β€” returns a Bool value.
  • $exception->type_constraint_message() β€” returns a Str value.
  • $exception->value()

πŸ’œ Moose::Exception::ValidationFailedForTypeConstraint

consumes the Moose::Exception::Role::Attribute role. πŸ¦‹

This class has the following methods:

  • $exception->attribute() β€” returns a Class::MOP::Attribute object.
  • $exception->type() β€” returns a Moose::Util::TypeConstraints value.
  • $exception->value()

πŸ“ Moose::Exception::WrapTakesACodeRefToBless

consumes the Moose::Exception::Role::ParamsHash role. πŸ’…

This class has the following methods:

  • $exception->class() β€” returns a Str value.
  • $exception->code()
  • $exception->params() β€” returns a HashRef value.

πŸ”₯ Moose::Exception::WrongTypeConstraintGiven

consumes the Moose::Exception::Role::ParamsHash role. ✨

This class has the following methods:

  • $exception->attribute_name() β€” returns a Str value.
  • $exception->given_type() β€” returns a Str value.
  • $exception->params() β€” returns a HashRef value.
  • $exception->required_type() β€” returns a Str value.

✨ AUTHORS ✨

Okay so this page was built by a whole squad, and honestly? It's giving collaborative slay. πŸ’… Shoutout to every single one of these icons:

  • Stevan Little <stevan@cpan.org>
  • Dave Rolsky <autarch@urth.org>
  • Jesse Luehrs <doy@cpan.org>
  • Shawn M Moore <sartak@cpan.org>
  • Χ™Χ•Χ‘Χœ Χ§Χ•Χ’'מן (Yuval Kogman) <nothingmuch@woobling.org>
  • Karen Etheridge <ether@cpan.org>
  • Florian Ragwitz <rafl@debian.org>
  • Hans Dieter Pearcey <hdp@cpan.org>
  • Chris Prather <chris@prather.org>
  • Matt S Trout <mstrout@cpan.org>

Ten whole legends. Not one, not two, ten. The group chat that actually shipped. 🫢✨


Bestie, the legal tea, served warm: πŸŽ€

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

And the license? Iconic behaviour only:

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

That's it. That's the whole vibe. Free as in go off, fr fr. πŸŒˆπŸ’œ


And that's a wrap on this whole page, bestie! πŸ¦‹ This bad boy came from perl v5.42.0, dated 2025-07-25 β€” and it was generated as Moose::...Manifest(3) over in the User Contributed Perl Documentation corner of the world. Now go forth and read a manifest. Slay. πŸ’…πŸŒΈπŸ‘‘

πŸ“¦ where this page comes from