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



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

def initialize(reason)
  @reason = reason
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



10
11
12
# File 'lib/castle/errors.rb', line 10

def reason
  @reason
end