Class: PrettyTimeouts::ConnectionFailed
- Inherits:
-
Faraday::Error::ConnectionFailed
- Object
- Faraday::Error::ConnectionFailed
- PrettyTimeouts::ConnectionFailed
- Defined in:
- lib/pretty_timeouts/connection_failed.rb
Instance Attribute Summary collapse
-
#open_timeout ⇒ Object
readonly
Returns the value of attribute open_timeout.
-
#original_message ⇒ Object
readonly
Returns the value of attribute original_message.
-
#service_name ⇒ Object
readonly
Returns the value of attribute service_name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(service_name, open_timeout, url, original_message) ⇒ ConnectionFailed
constructor
A new instance of ConnectionFailed.
- #message ⇒ Object
Constructor Details
#initialize(service_name, open_timeout, url, original_message) ⇒ ConnectionFailed
Returns a new instance of ConnectionFailed.
5 6 7 8 9 10 |
# File 'lib/pretty_timeouts/connection_failed.rb', line 5 def initialize(service_name, open_timeout, url, ) @service_name = service_name @open_timeout = open_timeout @url = url @original_message = end |
Instance Attribute Details
#open_timeout ⇒ Object (readonly)
Returns the value of attribute open_timeout.
3 4 5 |
# File 'lib/pretty_timeouts/connection_failed.rb', line 3 def open_timeout @open_timeout end |
#original_message ⇒ Object (readonly)
Returns the value of attribute original_message.
3 4 5 |
# File 'lib/pretty_timeouts/connection_failed.rb', line 3 def @original_message end |
#service_name ⇒ Object (readonly)
Returns the value of attribute service_name.
3 4 5 |
# File 'lib/pretty_timeouts/connection_failed.rb', line 3 def service_name @service_name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/pretty_timeouts/connection_failed.rb', line 3 def url @url end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/pretty_timeouts/connection_failed.rb', line 12 def "#{service_name} open timeout of #{open_timeout}s reached attempting to connect to #{url}. Got error: '#{}'" end |