| 1 | package WebService::OurWorldInData::Error; | ||
| 2 | # ABSTRACT: Error object for Our World in Data Chart API | ||
| 3 | |||
| 4 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | #extends 'WebService::OurWorldInData'; | ||
| 6 | |||
| 7 | 1 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | use Types::Standard qw( Str ); # Bool Enum Int ArrayRef HashRef InstanceOf ConsumerOf |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 1 | has error => ( | |
| 11 | is => 'ro', | ||
| 12 | isa => Str, | ||
| 13 | required => 1, | ||
| 14 | ); | ||
| 15 | |||
| 16 | 1 | has message => ( | |
| 17 | is => 'ro', | ||
| 18 | isa => Str, | ||
| 19 | ); | ||
| 20 | |||
| 21 | 1 | has details => ( | |
| 22 | is => 'ro', | ||
| 23 | isa => Str, | ||
| 24 | ); | ||
| 25 | |||
| 26 | 1 | 1; # Perl is my Igor | |
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | Basic Error object for containing errors sent by the OWID API | ||
| 31 | |||
| 32 | =cut | ||