Exception: SnapSearch::ValidationException
- Defined in:
- lib/snap_search/validation_exception.rb
Overview
Raised when the parameters of a request from the Client are not valid.
Instance Method Summary collapse
-
#initialize(response_content) ⇒ ValidationException
constructor
Raise a new ValidationException.
Constructor Details
#initialize(response_content) ⇒ ValidationException
Raise a new ValidationException
9 10 11 12 13 |
# File 'lib/snap_search/validation_exception.rb', line 9 def initialize(response_content) = response_content.values.collect { || " #{}" }.join("\n") super("Validation error from SnapSearch. Check your request parameters:\n#{ }") end |