Address-PostCode-UserAgent
view release on metacpan or search on metacpan
lib/Address/PostCode/UserAgent/Exception.pm view on Meta::CPAN
package Address::PostCode::UserAgent::Exception;
$Address::PostCode::UserAgent::Exception::VERSION = '0.09';
=head1 NAME
Address::PostCode::UserAgent::Exception - Interface to exception used by Address::PostCode::UserAgent.
=head1 VERSION
Version 0.09
=cut
use 5.006;
use Data::Dumper;
use Moo;
use namespace::autoclean;
with 'Throwable';
use overload q{""} => 'as_string', fallback => 1;
has method => (is => 'ro');
has message => (is => 'ro');
has code => (is => 'ro');
has reason => (is => 'ro');
has filename => (is => 'ro');
has line_number => (is => 'ro');
sub as_string {
my ($self) = @_;
return sprintf("%s(): %s (status: %s) file %s on line %d\n",
$self->method, $self->message, $self->code,
$self->filename, $self->line_number);
}
=head1 AUTHOR
Mohammad S Anwar, C<< <mohammad.anwar at yahoo.com> >>
=head1 REPOSITORY
L<https://github.com/Manwar/Address-PostCode-UserAgent>
=head1 BUGS
Please report any bugs or feature requests to C<bug-address-postcode-useragent at
rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Address-PostCode-UserAgent>.
I will be notified, and then you'll automatically be notified of progress on your
bug as I make changes.
=head1 SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Address::PostCode::UserAgent::Exception
You can also look for information at:
=over 4
=item * RT: CPAN's request tracker (report bugs here)
L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Address-PostCode-UserAgent>
=item * AnnoCPAN: Annotated CPAN documentation
L<http://annocpan.org/dist/Address-PostCode-UserAgent>
=item * CPAN Ratings
L<http://cpanratings.perl.org/d/Address-PostCode-UserAgent>
=item * Search CPAN
L<http://search.cpan.org/dist/Address-PostCode-UserAgent/>
( run in 0.684 second using v1.01-cache-2.11-cpan-119454b85a5 )