1GeoIP2::Error::Generic(U3s)er Contributed Perl DocumentatGieoonIP2::Error::Generic(3)
2
3
4

NAME

6       GeoIP2::Error::Generic - A generic exception
7

VERSION

9       version 2.006002
10

SYNOPSIS

12         use 5.008;
13
14         use GeoIP2::WebService::Client;
15         use Scalar::Util qw( blessed );
16         use Try::Tiny;
17
18         my $client = GeoIP2::WebService::Client->new(
19             account_id  => 42,
20             license_key => 'abcdef123456',
21         );
22
23         try {
24             $client->insights( ip => '24.24.24.24' );
25         }
26         catch {
27             die $_ unless blessed $_;
28             die $_ if $_->isa('GeoIP2::Error::Generic');
29
30             # handle other exceptions
31         };
32

DESCRIPTION

34       This class represents a generic error. It extends Throwable::Error and
35       does not add any additional attributes.
36

METHODS

38       This class has two methods, "$error->message()", and
39       "$error->stack_trace()". Both methods are inherited from
40       Throwable::Error.
41

SUPPORT

43       Bugs may be submitted through
44       <https://github.com/maxmind/GeoIP2-perl/issues>.
45

AUTHORS

47       •   Dave Rolsky <drolsky@maxmind.com>
48
49       •   Greg Oschwald <goschwald@maxmind.com>
50
51       •   Mark Fowler <mfowler@maxmind.com>
52
53       •   Olaf Alders <oalders@maxmind.com>
54
56       This software is copyright (c) 2013 - 2019 by MaxMind, Inc.
57
58       This is free software; you can redistribute it and/or modify it under
59       the same terms as the Perl 5 programming language system itself.
60
61
62
63perl v5.32.1                      2021-01-27         GeoIP2::Error::Generic(3)
Impressum