Sha256: 7d6beaac41090079771609b33a9d1f494e73719e3c8552462f1796023da1fcc5

Contents?: true

Size: 688 Bytes

Versions: 1

Compression:

Stored size: 688 Bytes

Contents

module Sportradar
  module Api
    class Error
      class AuthenticationError < StandardError; end
      class NoApiKey < AuthenticationError; end
      class InvalidResponseFormat < TypeError; end
      class InvalidLeague < StandardError; end
      class InvalidAccessLevel < StandardError; end
      class InvalidSeason < StandardError; end
      class Timeout < Timeout::Error ; end
      class NoData < EOFError; end

      attr_reader :message, :status_code, :status

      def initialize(response_status, response_code, response_message = nil)
        @status_code = response_code
        @status = response_status
        @message = response_message
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sportradar-api-0.1.0 lib/sportradar/api/error.rb