NAME
Type::Exception - exceptions for Type::Tiny and friends
DESCRIPTION
Constructors
new(%attributes)
-
Moose-style constructor function.
throw(%attributes)
-
Constructs an exception and passes it to
die
.Automatically populates
context
.
Attributes
message
-
The error message.
context
-
Hashref containing the package, file and line that generated the error.
Methods
to_string
-
Returns the message, followed by the context if it is set.
Overloading
Stringification is overloaded to call
to_string
.
Package Variables
BUGS
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Type-Tiny.
SEE ALSO
Type::Exception::Assertion, Type::Exception::WrongNumberOfParameters.
AUTHOR
Toby Inkster <tobyink@cpan.org>.
COPYRIGHT AND LICENCE
This software is copyright (c) 2013 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.
DISCLAIMER OF WARRANTIES
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.