Sha256: f709abaac56fe770e55e1e3c6be541278129028370f189aa5ad4c5a231ab9883

Contents?: true

Size: 781 Bytes

Versions: 1

Compression:

Stored size: 781 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 InvalidSeason < StandardError; end
      class InvalidSport < 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.1 lib/sportradar/api/error.rb