Exception: OpenSearch::Sugar::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/opensearch/sugar.rb,
sig/opensearch/sugar.rbs

Overview

Base error class for all opensearch-sugar exceptions.

Raised when operations such as settings or mappings updates fail. Rescuing this class catches all gem-specific errors without catching unrelated OpenSearch transport-layer exceptions.

Examples:

begin
  client.update_settings(bad_settings, "my_index")
rescue OpenSearch::Sugar::Error => e
  puts "Settings update failed: #{e.message}"
end