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.10.28 lib/sportradar/api/error.rb
sportradar-api-0.10.27 lib/sportradar/api/error.rb
sportradar-api-0.10.26 lib/sportradar/api/error.rb
sportradar-api-0.10.25 lib/sportradar/api/error.rb
sportradar-api-0.10.24 lib/sportradar/api/error.rb
sportradar-api-0.10.23 lib/sportradar/api/error.rb
sportradar-api-0.10.22 lib/sportradar/api/error.rb
sportradar-api-0.10.21 lib/sportradar/api/error.rb
sportradar-api-0.10.20 lib/sportradar/api/error.rb
sportradar-api-0.10.19 lib/sportradar/api/error.rb
sportradar-api-0.10.18 lib/sportradar/api/error.rb
sportradar-api-0.10.17 lib/sportradar/api/error.rb
sportradar-api-0.10.16 lib/sportradar/api/error.rb
sportradar-api-0.10.15 lib/sportradar/api/error.rb
sportradar-api-0.10.14 lib/sportradar/api/error.rb
sportradar-api-0.10.13 lib/sportradar/api/error.rb
sportradar-api-0.10.12 lib/sportradar/api/error.rb
sportradar-api-0.10.11 lib/sportradar/api/error.rb
sportradar-api-0.10.10 lib/sportradar/api/error.rb
sportradar-api-0.10.9 lib/sportradar/api/error.rb