Exception: Ey::Core::RequestFailure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ey-core/request_failure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request) ⇒ RequestFailure

Returns a new instance of RequestFailure.



4
5
6
7
8
9
10
# File 'lib/ey-core/request_failure.rb', line 4

def initialize(request)
  @request = request

  message = "#{request.message} (#{request.type}) [#{request.id}]"
  message = "#{message} #{request.resource.attributes.inspect}" if request.resource
  super(message)
end

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



2
3
4
# File 'lib/ey-core/request_failure.rb', line 2

def request
  @request
end