Sha256: b695007cfdf75b4255728d0d66a4fe1e276866dcef21d3fd14970211ac217dcc

Contents?: true

Size: 733 Bytes

Versions: 34

Compression:

Stored size: 733 Bytes

Contents

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

      attr_reader :message, :code, :response

      def initialize( code, message, response)
        @code = response_code
        @message = response_message
        @response = response
      end

    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
sportradar-api-0.1.38 lib/sportradar/api/error.rb
sportradar-api-0.1.37 lib/sportradar/api/error.rb
sportradar-api-0.1.36 lib/sportradar/api/error.rb
sportradar-api-0.1.35 lib/sportradar/api/error.rb
sportradar-api-0.1.34 lib/sportradar/api/error.rb
sportradar-api-0.1.33 lib/sportradar/api/error.rb
sportradar-api-0.1.32 lib/sportradar/api/error.rb
sportradar-api-0.1.31 lib/sportradar/api/error.rb
sportradar-api-0.1.30 lib/sportradar/api/error.rb
sportradar-api-0.1.29 lib/sportradar/api/error.rb
sportradar-api-0.1.28 lib/sportradar/api/error.rb
sportradar-api-0.1.27 lib/sportradar/api/error.rb
sportradar-api-0.1.26 lib/sportradar/api/error.rb
sportradar-api-0.1.25 lib/sportradar/api/error.rb
sportradar-api-0.1.24 lib/sportradar/api/error.rb
sportradar-api-0.1.23 lib/sportradar/api/error.rb
sportradar-api-0.1.22 lib/sportradar/api/error.rb
sportradar-api-0.1.21 lib/sportradar/api/error.rb
sportradar-api-0.1.19 lib/sportradar/api/error.rb
sportradar-api-0.1.18 lib/sportradar/api/error.rb