Sha256: abe04a0c72e24e628b54035c6c8aea3604f0ca1f35d09b495f1e0b99950350da

Contents?: true

Size: 316 Bytes

Versions: 3

Compression:

Stored size: 316 Bytes

Contents

class Ey::Core::RequestFailure < StandardError
  attr_reader :request

  def initialize(request)
    @request = request

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ey-core-3.6.6 lib/ey-core/request_failure.rb
ey-core-3.4.5 lib/ey-core/request_failure.rb
ey-core-3.6.5 lib/ey-core/request_failure.rb