Devel::Chitin::Exception - A class to represent an exception
my $exp = Devel::Chitin::Exception->new( package => 'main', subroutine => 'main::foo, filename => '/usr/local/bin/program.pl', line => 10, exception => 'You cannot do that!'); printf("On line %d of %s, exception in subroutine %s: %s\n", $exp->line, $exp->filename, $exp->subroutine, $exp->exception);
This class is used to represent a exception with location in the debugged program. It is a subclass of Devel::Chitin::Location.
Devel::Chitin::Exception->new(%params)
Construct a new instnce. The following parameters are accepted. The values should be self-explanatory. All parameters are required.
Each construction parameter also has a read-only method to retrieve the value.
Devel::Chitin::Location, Devel::Chitin
Anthony Brummett <brummett@cpan.org>
Copyright 2014, Anthony Brummett. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.
To install Devel::Chitin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Chitin
CPAN shell
perl -MCPAN -e shell install Devel::Chitin
For more information on module installation, please visit the detailed CPAN module installation guide.