Module: Yelp::Fusion::Error
- Defined in:
- lib/yelp/fusion/error.rb
Overview
Module to handle errors in Gem
Defined Under Namespace
Classes: AccessLimitReached, AlreadyConfigured, Base, BusinessNotFound, ClientError, InternalError, LocationNotFound, MissingAPIKeys, MissingLatLng, NotFound, RequestTimedOut, ResponseValidator, TokenInvalid, TokenMissing, TooManyRequestsPerSecond, ValidationError
Class Method Summary collapse
-
.check_for_error(response) ⇒ Object
Check the response for errors, raising an appropriate exception if necessary.
Class Method Details
.check_for_error(response) ⇒ Object
Check the response for errors, raising an appropriate exception if necessary
66 67 68 69 |
# File 'lib/yelp/fusion/error.rb', line 66 def self.check_for_error(response) @response_validator ||= ResponseValidator.new @response_validator.validate(response) end |