Sha256: f286863b923b33acd23d2056497ec41468fe5f696fd25893089fe7727c88361b

Contents?: true

Size: 758 Bytes

Versions: 185

Compression:

Stored size: 758 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 = code
        @message = message
        @response = response
      end

      def success?
        false
      end
    end
  end
end

Version data entries

185 entries across 185 versions & 1 rubygems

Version Path
sportradar-api-0.11.13 lib/sportradar/api/error.rb
sportradar-api-0.11.12 lib/sportradar/api/error.rb
sportradar-api-0.11.11 lib/sportradar/api/error.rb
sportradar-api-0.11.10 lib/sportradar/api/error.rb
sportradar-api-0.11.9 lib/sportradar/api/error.rb
sportradar-api-0.11.8 lib/sportradar/api/error.rb
sportradar-api-0.11.7 lib/sportradar/api/error.rb
sportradar-api-0.11.6 lib/sportradar/api/error.rb
sportradar-api-0.11.5 lib/sportradar/api/error.rb
sportradar-api-0.11.4 lib/sportradar/api/error.rb
sportradar-api-0.11.3 lib/sportradar/api/error.rb
sportradar-api-0.11.1 lib/sportradar/api/error.rb
sportradar-api-0.11.0 lib/sportradar/api/error.rb
sportradar-api-0.10.55 lib/sportradar/api/error.rb
sportradar-api-0.10.54 lib/sportradar/api/error.rb
sportradar-api-0.10.53 lib/sportradar/api/error.rb
sportradar-api-0.10.52 lib/sportradar/api/error.rb
sportradar-api-0.10.51 lib/sportradar/api/error.rb
sportradar-api-0.10.50 lib/sportradar/api/error.rb
sportradar-api-0.10.49 lib/sportradar/api/error.rb