rootcho has asked for the wisdom of the Perl Monks concerning the following question:
to inherit from in VS::Payload::Postal
Could not find an attribute by the name of 'obj_templates' to inherit +from in VS::Payload::Postal at /home/raptor/perl5/perlbrew/perls/perl +-5.18.2/lib/site_perl/5.18.2/x86_64-linux/Moose/Exception.pm line 38 Moose::Exception::_build_trace('Moose::Exception::NoAttributeFound +InSuperClass=HASH(0x245be10)') called at reader Moose::Exception::tra +ce (defined at /home/raptor/perl5/perlbrew/perls/perl-5.18.2/lib/site +_perl/5.18.2/x86_64-linux/Moose/Exception.pm line 12) line 7 Moose::Exception::trace('Moose::Exception::NoAttributeFoundInSuper +Class=HASH(0x245be10)') called at /home/raptor/perl5/perlbrew/perls/p +erl-5.18.2/lib/site_perl/5.18.2/x86_64-linux/Moose/Exception.pm line +50 Moose::Exception::BUILD('Moose::Exception::NoAttributeFoundInSuper +Class=HASH(0x245be10)', 'HASH(0x240dc40)') called at /home/raptor/per +l5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/x86_64-linux/Class +/MOP/Method.pm line 131 Class::MOP::Method::execute('Moose::Meta::Method=HASH(0x24d0808)', + 'Moose::Exception::NoAttributeFoundInSuperClass=HASH(0x245be10)', 'H +ASH(0x240dc40)') called at /home/raptor/perl5/perlbrew/perls/perl-5.1 +8.2/lib/site_perl/5.18.2/x86_64-linux/Moose/Object.pm line 59 Moose::Object::BUILDALL('Moose::Exception::NoAttributeFoundInSuper +Class=HASH(0x245be10)', 'HASH(0x240dc40)') called at /home/raptor/per +l5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/x86_64-linux/Moose +/Meta/Class.pm line 285 Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x245c050) +', 'HASH(0x240dc40)') called at /home/raptor/perl5/perlbrew/perls/per +l-5.18.2/lib/site_perl/5.18.2/x86_64-linux/Moose/Object.pm line 30 Moose::Object::new('Moose::Exception::NoAttributeFoundInSuperClass +', 'class', 'Moose::Meta::Class=HASH(0x2222158)', 'attribute_name', ' +obj_templates', 'params', 'HASH(0x1078580)') called at /home/raptor/p +erl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/x86_64-linux/Moo +se/Util.pm line 54 Moose::Util::throw_exception('NoAttributeFoundInSuperClass', 'clas +s', 'Moose::Meta::Class=HASH(0x2222158)', 'attribute_name', 'obj_temp +lates', 'params', 'HASH(0x1078580)') called at /home/raptor/perl5/per +lbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/x86_64-linux/Moose/Meta/ +Class.pm line 726 Moose::Meta::Class::_process_inherited_attribute('Moose::Meta::Cla +ss=HASH(0x2222158)', 'obj_templates', 'definition_context', 'HASH(0x2 +417890)', 'default', 'CODE(0x23dbd60)') called at /home/raptor/perl5/ +perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/x86_64-linux/Moose/Me +ta/Class.pm line 709 Moose::Meta::Class::_process_attribute('Moose::Meta::Class=HASH(0x +2222158)', '+obj_templates', 'definition_context', 'HASH(0x2417890)', + 'default', 'CODE(0x23dbd60)') called at /home/raptor/perl5/perlbrew/ +perls/perl-5.18.2/lib/site_perl/5.18.2/x86_64-linux/Moose/Meta/Class. +pm line 576 Moose::Meta::Class::add_attribute('Moose::Meta::Class=HASH(0x22221 +58)', '+obj_templates', 'definition_context', 'HASH(0x2417890)', 'def +ault', 'CODE(0x23dbd60)') called at /home/raptor/perl5/perlbrew/perls +/perl-5.18.2/lib/site_perl/5.18.2/x86_64-linux/Moose.pm line 80 Moose::has('Moose::Meta::Class=HASH(0x2222158)', '+obj_templates', + 'default', 'CODE(0x23dbd60)') called at /home/raptor/perl5/perlbrew/ +perls/perl-5.18.2/lib/site_perl/5.18.2/x86_64-linux/Moose/Exporter.pm + line 408 Moose::has('+obj_templates', 'default', 'CODE(0x23dbd60)') called +at ../base/lib/VS/Payload/Postal.pm line 15 require VS/Payload/Postal.pm at ../lib/VS/App/SRC3.pm line 8 VS::App::SRC3::BEGIN at ../base/lib/VS/Payload/Postal.pm line 0 eval {...} at ../base/lib/VS/Payload/Postal.pm line 0 require VS/App/SRC3.pm at src3.pl line 4 main::BEGIN at ../base/lib/VS/Payload/Postal.pm line 0 eval {...} at ../base/lib/VS/Payload/Postal.pm line 0 Compilation failed in require at ../lib/VS/App/SRC3.pm line 8. BEGIN failed--compilation aborted at ../lib/VS/App/SRC3.pm line 8. Compilation failed in require at src3.pl line 4. BEGIN failed--compilation aborted at src3.pl line 4.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Moose: inherited attributes
by tobyink (Canon) on Jan 10, 2014 at 23:57 UTC | |
by rootcho (Pilgrim) on Jan 12, 2014 at 02:37 UTC | |
Re: Moose: inherited attributes
by educated_foo (Vicar) on Jan 11, 2014 at 02:14 UTC |