|
NAMEWWW::Tumblr::ResponseError SYNOPSIS my $posts = $tumblr->blog('stupidshit.tumblr.com')->posts;
die "Couldn't get posts! " . Dumper( $tumblr->error->reasons ) unless $posts;
DESCRIPTIONThis a class representing WWW::Tumblr's "error" method. It contains the response from upstream Tumblr API. METHODSerrorCallable from a model context, usually WWW::Tumblr. print Dumper $tumblr->error unless $post; codeHTTP response code for the error: my $info = $blog->info;
print $blog->error->code . ' nono :(' unless $info;
reasonsCommodity 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 || [] };
}
BUGSPlease refer to WWW::Tumblr. AUTHOR(S)The same folks as WWW::Tumblr. SEE ALSOWWW::Tumblr, WWW::Tumblr::ResponseError. COPYRIGHT and LICENSESame as WWW::Tumblr.
|