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.9.5 lib/sportradar/api/error.rb
sportradar-api-0.9.3 lib/sportradar/api/error.rb
sportradar-api-0.9.2 lib/sportradar/api/error.rb
sportradar-api-0.9.1 lib/sportradar/api/error.rb
sportradar-api-0.9.0 lib/sportradar/api/error.rb