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.33 lib/sportradar/api/error.rb
sportradar-api-0.11.32 lib/sportradar/api/error.rb
sportradar-api-0.11.31 lib/sportradar/api/error.rb
sportradar-api-0.11.30 lib/sportradar/api/error.rb
sportradar-api-0.11.29 lib/sportradar/api/error.rb
sportradar-api-0.11.28 lib/sportradar/api/error.rb
sportradar-api-0.11.27 lib/sportradar/api/error.rb
sportradar-api-0.11.26 lib/sportradar/api/error.rb
sportradar-api-0.11.25 lib/sportradar/api/error.rb
sportradar-api-0.11.24 lib/sportradar/api/error.rb
sportradar-api-0.11.23 lib/sportradar/api/error.rb
sportradar-api-0.11.22 lib/sportradar/api/error.rb
sportradar-api-0.11.21 lib/sportradar/api/error.rb
sportradar-api-0.11.20 lib/sportradar/api/error.rb
sportradar-api-0.11.19 lib/sportradar/api/error.rb
sportradar-api-0.11.18 lib/sportradar/api/error.rb
sportradar-api-0.11.17 lib/sportradar/api/error.rb
sportradar-api-0.11.16 lib/sportradar/api/error.rb
sportradar-api-0.11.15 lib/sportradar/api/error.rb
sportradar-api-0.11.14 lib/sportradar/api/error.rb