Class: LogStash::Outputs::OpenSearch::HttpClient::Pool::HostUnreachableError
- Inherits:
-
Error
- Object
- Error
- LogStash::Outputs::OpenSearch::HttpClient::Pool::HostUnreachableError
- Defined in:
- lib/logstash/outputs/opensearch/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.
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_error ⇒ Object (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 |
#url ⇒ Object (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
#message ⇒ Object
37 38 39 |
# File 'lib/logstash/outputs/opensearch/http_client/pool.rb', line 37 def "OpenSearch Unreachable: [#{@url}][#{original_error.class}] #{original_error.}" end |