| 1 | package Mastodon::Entity::Error; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | our $VERSION = '0.018'; # TRIAL | |
| 7 | |||
| 8 | 2 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 2 | with 'Mastodon::Role::Entity'; | |
| 10 | |||
| 11 | 2 | ▶ | use Types::Standard qw( Str ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 2 | has error => ( is => 'ro', isa => Str, required => 1, ); | |
| 14 | |||
| 15 | 2 | 1; | |
| 16 | |||
| 17 | =encoding utf8 | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Mastodon::Entity::Error - An error in Mastodon | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This object should not be manually created. It is intended to be generated | ||
| 26 | from the data received from a Mastodon server using the coercions in | ||
| 27 | L<Mastodon::Types>. | ||
| 28 | |||
| 29 | For current information, see the | ||
| 30 | L<Mastodon API documentation|https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#error> | ||
| 31 | |||
| 32 | =head1 ATTRIBUTES | ||
| 33 | |||
| 34 | =over 4 | ||
| 35 | |||
| 36 | =item B<error> | ||
| 37 | |||
| 38 | A textual description of the error. | ||
| 39 | |||
| 40 | =back | ||
| 41 | |||
| 42 | =head1 AUTHOR | ||
| 43 | |||
| 44 | =over 4 | ||
| 45 | |||
| 46 | =item * | ||
| 47 | |||
| 48 | José Joaquín Atria <jjatria@cpan.org> | ||
| 49 | |||
| 50 | =back | ||
| 51 | |||
| 52 | =head1 COPYRIGHT AND LICENSE | ||
| 53 | |||
| 54 | This software is copyright (c) 2017 by José Joaquín Atria. | ||
| 55 | |||
| 56 | This is free software; you can redistribute it and/or modify it under | ||
| 57 | the same terms as the Perl 5 programming language system itself. | ||
| 58 | |||
| 59 | =cut | ||