Module: GdsApi::ExceptionHandling

Included in:
AssetManager, BusinessSupportApi, ContentApi, GovUkDelivery, JsonClient, Mapit, Panopticon
Defined in:
lib/gds_api/exceptions.rb

Instance Method Summary collapse

Instance Method Details

#ignoring(exception, &block) ⇒ Object



29
30
31
32
33
# File 'lib/gds_api/exceptions.rb', line 29

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