Exception: FileConvert::Exception::ConnectionError
- Inherits:
-
StandardError
- Object
- StandardError
- FileConvert::Exception::ConnectionError
- Defined in:
- lib/file_convert/exception.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(result, action) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
- #message ⇒ Object
Constructor Details
#initialize(result, action) ⇒ ConnectionError
Returns a new instance of ConnectionError.
19 20 21 22 23 24 |
# File 'lib/file_convert/exception.rb', line 19 def initialize(result, action) super() @result = result @error_message = result. @action = action end |
Instance Method Details
#message ⇒ Object
26 27 28 29 30 31 |
# File 'lib/file_convert/exception.rb', line 26 def ''" An error occured while #{@action}: #{@error_message}. Body of request was: #{@result.body} "'' end |