Exception: YANAPI::ExternalError
- Defined in:
- lib/yanapi/error.rb
Overview
A technical error accessing the server, may be caught and handled with a new attempt.
Instance Method Summary collapse
-
#initialize(exception) ⇒ ExternalError
constructor
A new instance of ExternalError.
Constructor Details
#initialize(exception) ⇒ ExternalError
Returns a new instance of ExternalError.
23 24 25 26 27 |
# File 'lib/yanapi/error.rb', line 23 def initialize(exception) msg = "Some external error occured:\n" + "#{exception.class}: #{exception.}" super(msg) end |