Module: GdsApi::ExceptionHandling

Included in:
ContentApi, JsonClient, Panopticon
Defined in:
lib/gds_api/exceptions.rb

Instance Method Summary collapse

Instance Method Details

#ignoring(exception, &block) ⇒ Object



25
26
27
28
29
# File 'lib/gds_api/exceptions.rb', line 25

def ignoring(exception, &block)
  yield
rescue exception
  # Discard the exception
end