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' );
- Links to openSUSE:Factory / perl-MooX-S...onstructor
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:dirkmueller:AL:TW/perl-MooX-StrictConstructor && cd $_
- Create Badge
Refresh
Refresh
Source Files (show merged sources derived from linked package)
Filename | Size | Changed |
---|---|---|
_link | 0000000718 718 Bytes |
Latest Revision
Dirk Mueller (dirkmueller)
committed
(revision 1)
Comments 0