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' );
- Developed at devel:languages:perl
- Sources inherited from project openSUSE:Factory
-
1
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Leap:16.0:FactoryCandidates/perl-MooX-StrictConstructor && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
MooX-StrictConstructor-0.011.tar.gz | 0000014954 14.6 KB | |
cpanspec.yml | 0000000547 547 Bytes | |
perl-MooX-StrictConstructor.changes | 0000002582 2.52 KB | |
perl-MooX-StrictConstructor.spec | 0000002533 2.47 KB |
Latest Revision
Dominique Leuenberger (dimstar_suse)
accepted
request 867061
from
Frank Schreiner (M0ses)
(revision 1)
new dependency for perl-Net-OBS-Client
Comments 0