Data::Type::Exception - base classes for exceptions
try { valid( 'muenalan<haaar..harr>cpan.org', STD::EMAIL ); } catch Data::Type::Exception with { dump( $e ) foreach @_; };
Exceptions are inherited from Class::Maker::Exception which is a wrapper for the Error module. Data::Type::Exception is the base class inheriting from Class::Maker::Exception.
Data::Type::Exception
The filename where the exception was thrown.
The line number.
The type 'object' used for verification.
Reference to the data subjected to verification.
List of embedded sub-exceptions or other diagnostic details.
A simple textual representation of the exception. Generally a very primitiv printf.
Dumps the complete exception via dump() from Data::Dump.
dump()
Only interesting if you are creating custom types. This exception is thrown in the verification process if a facet (which is a subelement of the verification process) fails.
Class::Maker::Exception.
Sourceforge http://sf.net/projects/datatype is hosting a project dedicated to this module. And I enjoy receiving your comments/suggestion/reports also via http://rt.cpan.org or http://testers.cpan.org.
Murat Uenalan, <muenalan@cpan.org>
To install Data::Type, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Type
CPAN shell
perl -MCPAN -e shell install Data::Type
For more information on module installation, please visit the detailed CPAN module installation guide.