Error::TypeTiny::Assertion - exception when a value fails a type constraint |
Error::TypeTiny::Assertion - exception when a value fails a type constraint
This module is covered by the Type-Tiny stability policy.
This exception is thrown when a value fails a type constraint assertion.
This package inherits from the Error::TypeTiny manpage; see that for most documentation. Major differences are listed below:
type
undef
.
value
varname
'$_'
.
attribute_name
(Hopefully one day this will support other OO frameworks.)
attribute_step
"isa check"
or "coercion"
to indicate which went wrong (if your Moo is new enough).
(Hopefully one day this will support other OO frameworks.)
has_type
, has_attribute_name
, has_attribute_step
message
varname
to the message if defined.
explain
Please report any bugs to http://rt.cpan.org/Dist/Display.html.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2013-2014 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Error::TypeTiny::Assertion - exception when a value fails a type constraint |