Exception: Europeana::Errors::ResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/europeana/errors.rb

Overview

Raised if the API response is not valid JSON.

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ ResponseError

Returns a new instance of ResponseError.


42
43
44
45
46
47
48
49
# File 'lib/europeana/errors.rb', line 42

def initialize(msg = nil)
 msg ||= <<-MSG
Response error.

Unable to parse the response from the Europeana API.
 MSG
 super(msg)
end