WWW::Tumblr::ResponseError(3p)

NAME
WWW::Tumblr::ResponseError

SYNOPSIS
  my $posts = $tumblr->blog('stupidshit.tumblr.com')->posts;

  die "Couldn't get posts! " . Dumper( $tumblr->error->reasons ) unless $posts;

DESCRIPTION
This a class representing WWW::Tumblr's "error" method. It contains the response from upstream Tumblr API.

METHODS

  error
Callable from a model context, usually WWW::Tumblr.

  print Dumper $tumblr->error unless $post;

  code
HTTP response code for the error:

  my $info = $blog->info;
  print $blog->error->code . ' nono :(' unless $info;

  reasons
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 || [] };
  }

BUGS
Please refer to WWW::Tumblr.

AUTHOR(S)
The same folks as WWW::Tumblr.

SEE ALSO
WWW::Tumblr, WWW::Tumblr::ResponseError.

COPYRIGHT and LICENSE
Same as WWW::Tumblr.