Net::Twitter::Lite::Error(3pm) | User Contributed Perl Documentation | Net::Twitter::Lite::Error(3pm) |
Net::Twitter::Lite::Error - Encapsulates errors thrown by Net::Twitter::Lite
version 0.12008
use Net::Twitter::Lite; my $nt = Net::Twitter::Lite->new; my $r = eval { $nt->friends_timeline }; warn "$@\n" if $@;
Net::Twitter::Lite::Error encapsulates errors thrown by "Net::Twitter::Lite". A "Net::Twitter::Lite::Error" object will contain an "HTTP::Response", and a HASHREF containing Twitter API error information if one was returned by Twitter.
my $e = Net::Twitter::Lite::Error->new(http_response => $res, twitter_error => $te); my $e = Net::Twitter::Lite::Error->new(http_response => $res);
A Net::Twitter::Lite::Error stringifies to the "error" message.
Net::Twitter::Lite
Marc Mims <marc@questright.com>
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
2022-06-16 | perl v5.34.0 |