Exception: WebClient::ConnectionFail
- Defined in:
- lib/web_client/error.rb
Instance Method Summary collapse
-
#initialize(inner_error) ⇒ ConnectionFail
constructor
A new instance of ConnectionFail.
- #message ⇒ Object
- #to_s ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(inner_error) ⇒ ConnectionFail
Returns a new instance of ConnectionFail.
7 8 9 |
# File 'lib/web_client/error.rb', line 7 def initialize(inner_error) @inner_error = inner_error end |
Instance Method Details
#message ⇒ Object
15 16 17 |
# File 'lib/web_client/error.rb', line 15 def "#{type}: #{@inner_error.}" end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/web_client/error.rb', line 19 def to_s end |
#type ⇒ Object
11 12 13 |
# File 'lib/web_client/error.rb', line 11 def type @inner_error.class end |