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