Sha256: b1afe88d7db163df71a9d4a72c2e04d70e969c47a67f5c2cf7fd0a9a0b48f51d

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

module Axel
  module Payload
    class RemoteError < StandardError
      attr_reader :remote_errors
      def initialize(remote_errors)
        @remote_errors = remote_errors
      end

      def to_s
        "Failed. HTTP Status: #{remote_errors.status_code}, Messages: #{@remote_errors.messages.join('. ')}"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axel-0.0.1 lib/axel/payload/remote_error.rb