Exception: Twitter::UnauthorizedError

Inherits:
RESTError
  • Object
show all
Defined in:
lib/twitter/core.rb

Overview

Runtime error leaf class raised when user and/or client credentials are missing or invalid. HTTP code: 401 (aka Unauthorized).

To handle specifically you would do the following: begin timeline = twitter.timeline_for(:friends, :since => tweet) rescue UnauthorizedError => uae

do something to prompt for valid credentials to user here.

end

Instance Attribute Summary

Attributes inherited from RESTError

#code, #error, #message, #uri

Method Summary

Methods inherited from RESTError

register, registry, #to_s

Methods included from ClassUtilMixin

included