Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SnifferTimeoutError < Timeout::Error; end

# Elasticsearch server error (HTTP status 5xx)
#
class ServerError < StandardError; end
class ServerError < Error; end

module Errors; end

Expand Down
5 changes: 5 additions & 0 deletions elasticsearch-transport/test/unit/transport_base_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -452,4 +452,9 @@ def initialize(*); end
end
end

context "errors" do
should "raise highest-level Error exception for any ServerError" do
assert_kind_of Elasticsearch::Transport::Transport::Error, Elasticsearch::Transport::Transport::ServerError.new
end
end
end