Class: LogStash::Outputs::OpenSearch::HttpClient::Pool::HostUnreachableError

Inherits:
Error
  • Object
show all
Defined in:
lib/logstash/outputs/opensearch/http_client/pool.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original_error, url) ⇒ HostUnreachableError

Returns a new instance of HostUnreachableError.


32
33
34
35
# File 'lib/logstash/outputs/opensearch/http_client/pool.rb', line 32

def initialize(original_error, url)
  @original_error = original_error
  @url = url
end

Instance Attribute Details

#original_errorObject (readonly)

Returns the value of attribute original_error.


30
31
32
# File 'lib/logstash/outputs/opensearch/http_client/pool.rb', line 30

def original_error
  @original_error
end

#urlObject (readonly)

Returns the value of attribute url.


30
31
32
# File 'lib/logstash/outputs/opensearch/http_client/pool.rb', line 30

def url
  @url
end

Instance Method Details

#messageObject


37
38
39
# File 'lib/logstash/outputs/opensearch/http_client/pool.rb', line 37

def message
  "OpenSearch Unreachable: [#{@url}][#{original_error.class}] #{original_error.message}"
end