Raised when Twitter returns a 5xx HTTP status code
Create a new error from an HTTP environment
@param response [Hash] @return [Twitter::Error]
# File lib/twitter/error/server_error.rb, line 13 def self.from_response(response={}) new(nil, response[:response_headers]) end
Initializes a new ServerError object
@param message [String] @param response_headers [Hash] @return [Twitter::Error::ServerError]
# File lib/twitter/error/server_error.rb, line 22 def initialize(message=nil, response_headers={}) super((message || self.class.const_get(:MESSAGE)), response_headers) end
Generated with the Darkfish Rdoc Generator 2.