WWW::Tumblr::ResponseError
my $posts = $tumblr->blog('stupidshit.tumblr.com')->posts; die "Couldn't get posts! " . Dumper( $tumblr->error->reasons ) unless $posts;
This a class representing WWW::Tumblr's error method. It contains the response from upstream Tumblr API.
error
Callable from a model context, usually WWW::Tumblr.
print Dumper $tumblr->error unless $post;
HTTP response code for the error:
my $info = $blog->info; print $blog->error->code . ' nono :(' unless $info;
Commodity method to display reasons why the error ocurred. It returns an array reference:
unless ( $some_tumblr_action ) { print "Errors! \n"; print $_, "\n" for @{ $tumblr->error->reasons || [] }; }
Please refer to WWW::Tumblr.
The same folks as WWW::Tumblr.
WWW::Tumblr, WWW::Tumblr::ResponseError.
Same as WWW::Tumblr.
To install WWW::Tumblr, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Tumblr
CPAN shell
perl -MCPAN -e shell install WWW::Tumblr
For more information on module installation, please visit the detailed CPAN module installation guide.