browserstack/ruby-screenshots — pull request #1 by darrennix (2013-06-09 16:59:07+00:00)
Title: Raise custom exceptions and pass http code and body

Allows better rescuing of Browserstack exceptions such as:

begin
response = client.generate_screenshots(params)
rescue Screenshot::InvalidRequestError => e
puts e.code
puts e.body
end