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.
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.