Make your Moo-based object constructors blow up on unknown attributes
https://metacpan.org/release/MooX-StrictConstructor
Simply loading this module makes your constructors "strict". If your constructor is called with an attribute init argument that your class does not declare, then it dies. This is a great way to catch small typos. Your application can use Carp::Always to generate stack traces on 'die'. Previously all exceptions contained traces, but this could potentially leak sensitive information, e.g. My::Sensitive::Class->new( password => , extra_value => 'foo' );
- Devel package for openSUSE:Factory
-
1
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:languages:perl/perl-MooX-StrictConstructor && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
MooX-StrictConstructor-0.008.tar.gz | 0000014255 13.9 KB | |
cpanspec.yml | 0000000547 547 Bytes | |
perl-MooX-StrictConstructor.changes | 0000000735 735 Bytes | |
perl-MooX-StrictConstructor.spec | 0000002729 2.67 KB |
Revision 2 (latest revision is 6)
Stephan Kulow (coolo)
accepted
request 306784
from
Stephan Kulow (coolo)
(revision 2)
automatic update
Comments 0