module Yelp::Fusion::Error
Module to handle errors in Gem
Public Class Methods
check_for_error(response)
click to toggle source
Check the response for errors, raising an appropriate exception if necessary @param (see ResponseValidator#validate
)
# File lib/yelp/fusion/error.rb, line 66 def self.check_for_error(response) @response_validator ||= ResponseValidator.new @response_validator.validate(response) end