Error.pm (702B)
1 package Rarbg::torrentapi::Error; 2 3 use strict; 4 use 5.008_005; 5 our $VERSION = 'v0.1.1'; 6 use Moose; 7 8 has 'error' => ( 9 is => 'ro', 10 isa => 'Str' 11 ); 12 13 has 'error_code' => ( 14 is => 'ro', 15 isa => 'Int' 16 ); 17 18 no Moose; 19 __PACKAGE__->meta->make_immutable; 20 1; 21 __END__ 22 23 =encoding utf-8 24 25 =head1 NAME 26 27 Rarbg::torrentapi::Error - Error response class for Rarbg::torrentapi 28 29 =head1 DESCRIPTION 30 31 This is not meant to be used directly, see Rarbg::torrentapi 32 33 =head1 AUTHOR 34 35 Paco Esteban E<lt>paco@onna.beE<gt> 36 37 =head1 COPYRIGHT 38 39 Copyright 2015- Paco Esteban 40 41 =head1 LICENSE 42 43 This library is free software; you can redistribute it and/or modify 44 it under the same terms as Perl itself. 45 46 =head1 SEE ALSO 47 48 =cut