Moose::Manual::Exceptions::Manifest - Moose's Exception Types
version 2.1405
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash.
This attribute is read-only, isa Str and is required.
This attribute is read-only and isa Str. It is lazy and has a default value 'Error'.
This attribute is read-only, isa HashRef and is required.
This attribute is read-only and isa Devel::StackTrace. It is lazy & dependent on $exception->message.
Cannot define an accessor name on a read-only attribute, accessors are read/ write
This class is a subclass of Moose::Exception.
Type must be a Moose::Meta::TypeConstraint::Parameterizable not Foo
This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Class.
This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->class_name );
This attribute is read-only, isa Any and is required.
Roles must be instances of Moose::Meta::Role
This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Role.
This attribute can be used for fetching metaclass instance: my $metaclass_instance = Moose::Util::find_meta( $exception->role_name );
You must pass in an blessed instance
This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Attribute.
This attribute is read-only, isa Class::MOP::Attribute, has a predicate is_attribute_set and is optional.
is_attribute_set
You must pass a Class::MOP::Class instance (or a subclass)
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'.
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::AttributeName, Moose::Exception::Role::Role.
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.
has '+attr' is not supported in roles
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 );
This attribute is read-only, isa HashRef, has a predicate has_params and is optional.
has_params
Attribute (baz) is required Attribute (bar) is required Attribute (foo_required) is required Attribute (baz) is required
Your attribute must be an instance of Class::MOP::Mixin::AttributeCore (or a subclass)
This attribute is read-only, isa Class::MOP::Attribute and is required.
attribute_name (foo) does not match attribute->name (bar)
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Attribute, Moose::Exception::Role::Instance.
This attribute is read-only, isa Object and is required.
This attribute is read-only, isa Moose::Meta::Method::Delegation and is required.
Cannot delegate get_count to count because the value of foo is not an object (got 'ARRAY(0x223f578)')
Cannot delegate get_count to count because the value of foo is not defined
You cannot auto-dereference anything other than a ArrayRef or HashRef on attribute (bar)
bad accessor/reader/writer/predicate/clearer format, must be a HASH ref
This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::ParamsHash.
Setting both default and builder is not allowed.
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Attribute and Moose::Exception::Role::Instance.
Foo does not support builder method '_build_baz' for attribute 'baz'
Class::MOP::Attribute does not support builder method 'foo' for attribute 'bar'
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class, Moose::Exception::Role::Instance.
Test::LazyBuild::Attribute does not support builder method '_build_fool' for attribute 'fool'
builder must be a defined scalar value which is a method name
The 'add_method' method cannot be called on an immutable instance
The 'superclasses' method is read-only when called on an immutable instance
You cannot inherit from a Moose Role (Bar)
You can only consume roles, Module::Runtime is not a Moose role
Can only wrap blessed CODE
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.
You may rebless only into a subclass of (Foo2), of which (Foo) isn't.
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class, Moose::Exception::Role::Instance and Moose::Exception::Role::InstanceClass.
You may rebless only into a superclass of (Foo), of which (Foo2) isn't.
This attribute is read-only, isa Moose::Meta::TypeCoercion::Union and is required.
Cannot add additional type coercions to Union types
Cannot add a Moose::Meta::Class as an attribute to a role
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::ParamsHash and Moose::Exception::Role::Role.
You can only apply base class roles to a Moose class, not a role.
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class and Moose::Exception::Role::EitherAttributeOrAttributeName.
This attribute is read-only, isa Class::MOP::Attribute, has a predicate has_attribute and is optional.
has_attribute
This attribute is read-only, isa Str, has a predicate has_attribute_name and is optional.
has_attribute_name
Cannot assign a value to a read-only accessor
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class and Moose::Exception::Role::Method.
This attribute is read-only, isa Moose::Meta::Method and is required.
Cannot add an augment method if a local method is already present
You cannot augment 'foo' because it has no super method
You cannot auto-dereference without specifying a type constraint on attribute (bar)
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Attribute, Moose::Exception::Role::Instance and Moose::Exception::Role::TypeConstraint.
This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint): my $type_constraint = Moose::Util::TypeConstraints::find_type_constraint( $exception->type_name );
Can not auto de-reference the type constraint 'Int'
This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::Instance.
Cannot calculate native type for Moose::Meta::Class::__ANON__::SERIAL::
Class::MOP::Method::Generated is an abstract base class, you must provide a constructor.
Abstract method
You cannot have a weak reference to a coerced value on attribute (bar)
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::InvalidAttributeOptions, Moose::Exception::Role::ParamsHash and Moose::Exception::Role::TypeConstraint.
You cannot coerce an attribute (foo) unless its type (Str) has a coercion
This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::TypeConstraint.
You cannot create a Higher Order type without a type parameter
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Method, Moose::Exception::Role::Role.
Cannot create a method alias if a local method of the same name exists
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class, Moose::Exception::Role::Method, Moose::Exception::Role::Role.
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Attribute and Moose::Exception::Role::Method.
You cannot overwrite a locally defined method (full) with a delegation
Cannot delegate methods based on a Regexp without a type constraint (isa)
Cannot find delegate metaclass for attribute bar
Cannot find type 'Foo', perhaps you forgot to load it
Cannot find or parse the type 'doesNotExist'
This attribute is read-only, isa Str and is optional.
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.
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 );
Can't generate an inline constraint for Int, since none was defined
This attribute is read-only, isa ArrayRef and is required.
This attribute is read-only, isa Moose::Meta::Role::Composite and is required.
Moose::Meta::Role::Composite instances can only be reinitialized from an existing metaclass instance
Cannot inline a type constraint check for NotInlinable
Can't locate Moose::Meta::Attribute::Custom::Trait::Xyz or Xyz in \@INC \(\@ INC contains:
Cannot add an override of method 'bar' because there is a local version of 'bar'
Overriding the body of meta methods is not allowed
Cannot add an override method if a local method is already present
You cannot override 'foo' because it has no super method
can't register an unnamed type constraint
You can not use lazy_build and default for the same attribute (bar)
Circular reference in 'also' parameter to Moose::Exporter between MooseX::CircularAlso and MooseX::CircularAlso
Cannot provide traits when Moose::Util::TypeConstraints does not have an init_meta() method
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class, Moose::Exception::Role::Role.
The class FooClass2 does the excluded role 'ExcludedRole2'
This attribute is read-only, isa Class::MOP::Class and is required.
You must pass an instance of the metaclass (Foo), not (foo)
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Instance, Moose::Exception::Role::ParamsHash.
Your code block must be a CODE reference
Cannot coerce without a type coercion
A coercion action already exists for 'Int'
You cannot have coercion without specifying a type constraint on attribute (bar)
Conflict detected: Foo excludes role 'Bar'
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class and Moose::Exception::Role::Role.
Conflict detected: FooClass excludes role 'BarRole'
You must pass a package name
Could not create the 'predicate' method for bar because : Can't call method "name" on an undefined value
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::EitherAttributeOrAttributeName and Moose::Exception::Role::Instance.
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"
This attribute is read-only, isa Class::MOP::Method::Constructor and is required.
Could not eval the constructor :
This attribute is read-only, isa Moose::Meta::Method::Destructor and is required.
Could not eval the destructor
Could not find the type constraint (xyz) to coerce from
This attribute is read-only, isa Moose::Exception and is required.
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
Could not locate type constraint (foo) for the union
This attribute is read-only, isa Int and is required.
'Str | Undef |' didn't parse (parse-pos=11 and str-length=13)
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::ParamsHash and Moose::Exception::Role::RoleForCreateMOPClass.
You must pass an ARRAY ref of attributes
You must pass an ARRAY ref of superclasses
You must pass an HASH ref of methods
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::ParamsHash and Moose::Exception::Role::RoleForCreate.
You must pass an ARRAY ref of roles
You must pass a HASH ref of attributes
You must pass a HASH ref of methods
Default case must be a CODE ref, not ARRAY(0x14f6fc8)
The bar attribute is trying to delegate to a class which has not been loaded - Not::Loaded
The bar attribute is trying to delegate to a role which has not been loaded - Role
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
You must supply a role name to does()
enum called with an array reference and additional arguments. Did you mean to parenthesize the enum call's parameters?
Enum values must be strings, not undef Enum values must be strings, not 'ARRAY(0x191d1b8)'
Must derive at least one class
The 'handles' option must be a HASH reference, not bar
Illegal inherited options => (clearer)
Methods passed to before must be provided as a list, arrayref or regex, not HASH
The metaclass of My::Class (Class::MOP::Class) is not compatible with the metaclass of its superclass, My::Role (Moose::Meta::Role)
Cannot call init_meta without specifying a for_class
You must pass a package name and it cannot be blessed
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class, Moose::Exception::Role::Instance, Moose::Exception::Role::ParamsHash.
Objects passed as the __INSTANCE__ parameter must already be blessed into the correct class, but Bar=HASH(0x2d77528) is not a Foo
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class, Moose::Exception::Role::ParamsHash.
The __INSTANCE__ parameter must be a blessed reference, not ARRAY(0x1d75d40)
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?
This attribute is read-only, isa Str, has a default value "argument" and is optional.
This attribute is read-only, isa Str, has a predicate is_ordinal_set and is optional.
is_ordinal_set
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
HASH references are not valid arguments to the 'trait_aliases' option
Could not locate the base type (Foo)
All values passed to handles must be strings or ARRAY references, not (?^:ba r)
Usage: has 'name' => ( key => value, ... )
contains invalid characters
This attribute is read-only, isa Defined and is required.
Role applications must be instances of Moose::Meta::Role::Application::ToClass
This attribute is read-only, isa Moose::Meta::TypeConstraint::Registry and is required.
No type supplied / type is not a valid type constraint
Could not parse type name (Foo) correctly
I do not understand this option (is => bar) on attribute (foo)
Cannot have an isa option and a does option if the isa does not do the does on attribute (bar)
Cannot have an isa option which cannot ->does() on attribute (bar)
This class is a subclass of Moose::Exception and consumes role Moose::Exception::Role::EitherAttributeOrAttributeName.
You cannot have a lazy attribute (bar) without specifying a default value for it
Hello, I am an exception object An inline error
You must provide a name for the attribute
Match action must be a CODE ref, not ARRAY(0x27a0748)
The 'message' parameter must be a coderef
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.
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.
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)).
The Metaclass Foo3 must be a subclass of Moose::Meta::Class.
The Metaclass Foo3 must be a subclass of Moose::Meta::Role.
The metaclass (Foo) must be derived from Class::MOP::Class
The Metaclass Foo2 must be loaded. (Perhaps you forgot to 'use Foo2'?)
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)
The is_needed method expected a metaclass object as its arugment
Cannot call substr with more than 3 arguments
Cannot call substr without at least 1 argument
You must pass in a method name
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
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'
The method 'foo' was not found in the inheritance hierarchy for Foo
You must define a method name to find
You must define a method name
You must define an attribute name
You must have at least one value to enumerate through
You must pass a hash of options
You must pass a Moose::Meta::Role instance (or a subclass)
You must pass a package name or an existing Class::MOP::Package instance
You must pass an even number of arguments to set
You must pass an even number of attribute options
Must specify at least one method
Must specify at least one role
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)
You must supply an attribute which is a 'Class::MOP::Attribute' instance
You must supply a delegate_to_method which is a method name or a CODE reference
You must pass a metaclass instance if you want to inline
You must supply an attribute which is a 'Moose::Meta::Attribute' instance
You must supply an accessor_type to construct with
You must supply an attribute to construct with
You must supply a curried_arguments which is an ARRAY reference
You must supply the package_name and name parameters
You can only create a Moose::Meta::TypeCoercion::Union for a Moose::Meta::TypeConstraint::Union, not a Str
You need to give attribute or attribute_name or both
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class, Moose::Exception::Role::InvalidAttributeOptions and Moose::Exception::Role::ParamsHash.
Could not find an attribute by the name of 'bar' to inherit from in Test2
No body to initialize, Class::MOP::Method::Generated is an abstract base class
No cases matched for 123
Could not compile type constraint 'FooTypeConstraint' because no constraint check
This class is a subclass of Moose::Exception and consume roles Moose::Exception::Role::Class and Moose::Exception::Role::ParamsHash.
The 'inline_destructor' option is present, but no destructor class was specified
no immutable trait specified for Moose::Meta::Class=HASH(0x19a2280)
A subtype cannot consist solely of a name, it must have a parent
You can only clone instances, (ARRAY(0x2162350)) is not a blessed instance
This attribute is read-only, isa Moose::Meta::Role::Application::RoleSummation and is required.
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.
This attribute is read-only, isa Bool, has a default value 0 and is required.
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.
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.
This attribute is read-only, isa Bool and is required.
Package in also (NoSuchThing) does not seem to use Moose::Exporter (is it loaded?)
This attribute is read-only, isa CodeRef and is required.
Modules are not cacheable Packages are not cacheable
Int is not a subtype of Float
References are not allowed as default values, you must wrap the default of 'foo' in a CODE reference (ex: sub { [] } and not [])
A required attribute must have either 'init_arg', 'builder', or 'default'
You cannot have a required attribute (bar) without a default, builder, or an init_arg
This attribute is read-only, isa Moose::Meta::Role::Method::Required and is required.
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
'Foo3::Role|Bar3::Role|Baz3::Role' requires the method 'foo' to be implemented by 'My::Foo::Class::Broken3'
The role Bar2 does the excluded role 'Bar3'
Conflict detected: Role Foo1 excludes role 'Bar1' Conflict detected: Roles Foo1, Baz1 exclude role 'Bar1'
You must supply a role name to look for
Roles cannot support 'augment'
Roles do not support 'extends' (you can use 'with' to specialize a role)
Roles cannot support 'inner'
Roles do not currently support regex references for before method modifiers
The list of roles must be instances of Moose::Meta::Role, not foo
Single parameters to new() must be a HASH ref
Trigger must be a CODE ref on attribute (bar)
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 );
The Int[Xyz] constraint cannot be used, because Int doesn't subtype or coerce from a parameterizable type.
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
The type parameter must be a Moose meta type
Unable to canonicalize the 'handles' option with GLOB(0x109d0b0)
Unable to canonicalize the 'handles' option with Foo1 because its metaclass is not a Moose::Meta::Role
Unable to recognize the delegate metaclass 'Class::MOP::Package
Hash keys passed to set must be defined
union called with an array reference and additional arguments
You must pass in at least 2 type names to make a union
This attribute is read-only, isa Bool, has a predicate is_a_new_member, has a default value 0 and is optional.
is_a_new_member
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
This attribute is read-only, isa Moose::Util::TypeConstraints and is required.
Attribute (bar) does not pass the type constraint because: Validation failed for 'Int' with value "test" Validation failed for 'OnlyPositiveInts' with value -123
You must supply a CODE reference to bless, not (foo)
The type constraint for foo must be a subtype of ArrayRef but it's a Int
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>
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.
To install Moose, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Moose
CPAN shell
perl -MCPAN -e shell install Moose
For more information on module installation, please visit the detailed CPAN module installation guide.