Class: LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError
- Inherits:
-
Error
- Object
- Error
- LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError
- Defined in:
- lib/logstash/outputs/elasticsearch/http_client/pool.rb
Instance Attribute Summary collapse
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(original_error, url) ⇒ HostUnreachableError
constructor
A new instance of HostUnreachableError.
- #message ⇒ Object
Constructor Details
#initialize(original_error, url) ⇒ HostUnreachableError
Returns a new instance of HostUnreachableError.
21 22 23 24 |
# File 'lib/logstash/outputs/elasticsearch/http_client/pool.rb', line 21 def initialize(original_error, url) @original_error = original_error @url = url end |
Instance Attribute Details
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
19 20 21 |
# File 'lib/logstash/outputs/elasticsearch/http_client/pool.rb', line 19 def original_error @original_error end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
19 20 21 |
# File 'lib/logstash/outputs/elasticsearch/http_client/pool.rb', line 19 def url @url end |
Instance Method Details
#message ⇒ Object
26 27 28 |
# File 'lib/logstash/outputs/elasticsearch/http_client/pool.rb', line 26 def "Elasticsearch Unreachable: [#{@url}][#{original_error.class}] #{original_error.}" end |