1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00
capybara-webkit/lib/capybara/webkit/errors.rb
2013-02-11 17:49:13 -05:00

25 lines
440 B
Ruby

module Capybara::Webkit
module JsonError
def json_create(attributes)
new(attributes["message"])
end
end
class InvalidResponseError < StandardError
extend JsonError
end
class NoResponseError < StandardError
end
class NodeNotAttachedError < Capybara::ElementNotFound
end
class ClickFailed < StandardError
extend JsonError
end
class TimeoutError < Timeout::Error
extend JsonError
end
end