Exception: YANAPI::ExternalError

Inherits:
Error
  • Object
show all
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

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.message}"
  super(msg)
end