Methods

Class/Module Index [+]

Quicksearch

Twitter::Error::ClientError

Raised when Twitter returns a 4xx HTTP status code or there's an error in Faraday

Public Class Methods

from_response(response={}) click to toggle source

Create a new error from an HTTP environment

@param response [Hash] @return [Twitter::Error]

# File lib/twitter/error/client_error.rb, line 12
def self.from_response(response={})
  new(parse_error(response[:body]), response[:response_headers])
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.