GeoIP2/Error/Type.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« GeoIP2/Error/IPAddressNotFound.pm ↑ Summary GeoIP2/Error/WebService.pm »
1 package GeoIP2::Error::Type;
2  
3 14 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 14 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 14 our $VERSION = '2.006002';
7  
8 14 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 14 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 14 extends 'Throwable::Error';
13  
14 # We can't load GeoIP2::Types to get types here because we'd have a circular
15 # use in that case.
16 14 has type => (
17 is => 'ro',
18 required => 1,
19 );
20  
21 14 has value => (
22 is => 'ro',
23 required => 1,
24 );
25  
26 14 1;
27  
28 # ABSTRACT: A type validation error.
29  
30 __END__
« GeoIP2/Error/IPAddressNotFound.pm ↑ Summary GeoIP2/Error/WebService.pm »