Exception: Castle::RequestError

Inherits:
Error
  • Object
show all
Defined in:
lib/castle/errors.rb

Overview

Raised when anything is wrong with the request (any unhappy path) This error indicates that either we would wait too long for a response or something else happened somewhere in the middle and we weren’t able to get the results

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason) ⇒ RequestError

Returns a new instance of RequestError.

Parameters:

  • reason (Exception)

    the core exception that causes this error



15
16
17
# File 'lib/castle/errors.rb', line 15

def initialize(reason)
  @reason = reason
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



12
13
14
# File 'lib/castle/errors.rb', line 12

def reason
  @reason
end