Exception: Graphiti::Errors::Remote
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(url, errors) ⇒ Remote
constructor
A new instance of Remote.
- #message ⇒ Object
Constructor Details
#initialize(url, errors) ⇒ Remote
Returns a new instance of Remote.
60 61 62 63 |
# File 'lib/graphiti/errors.rb', line 60 def initialize(url, errors) @url = url @errors = errors end |
Instance Method Details
#message ⇒ Object
65 66 67 68 69 70 71 72 |
# File 'lib/graphiti/errors.rb', line 65 def msg = "Error hitting remote API: #{@url}" @errors.each do |e| msg << "\n\n#{e[:message]}" msg << "\n\n#{e[:backtrace].join("\n")}\n\n\n\n" if e[:backtrace] end msg end |