module GdsApi::ExceptionHandling

def ignoring(exception_or_exceptions, &block)

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

def ignoring_missing(&block)

def ignoring_missing(&block)
  ignoring([HTTPNotFound, HTTPGone], &block)
end