Exception: Europeana::Errors::RequestError

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

Overview

Raised if the API response success flag is false, indicating a problem with the request.

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ RequestError

Returns a new instance of RequestError.


28
29
30
31
32
33
34
35
# File 'lib/europeana/errors.rb', line 28

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

There was a problem with your request to the Europeana API.
 MSG
 super(msg)
end