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.48 lib/sportradar/api/error.rb
sportradar-api-0.10.47 lib/sportradar/api/error.rb
sportradar-api-0.10.46 lib/sportradar/api/error.rb
sportradar-api-0.10.45 lib/sportradar/api/error.rb
sportradar-api-0.10.44 lib/sportradar/api/error.rb
sportradar-api-0.10.43 lib/sportradar/api/error.rb
sportradar-api-0.10.42 lib/sportradar/api/error.rb
sportradar-api-0.10.41 lib/sportradar/api/error.rb
sportradar-api-0.10.40 lib/sportradar/api/error.rb
sportradar-api-0.10.39 lib/sportradar/api/error.rb
sportradar-api-0.10.38 lib/sportradar/api/error.rb
sportradar-api-0.10.37 lib/sportradar/api/error.rb
sportradar-api-0.10.36 lib/sportradar/api/error.rb
sportradar-api-0.10.35 lib/sportradar/api/error.rb
sportradar-api-0.10.34 lib/sportradar/api/error.rb
sportradar-api-0.10.33 lib/sportradar/api/error.rb
sportradar-api-0.10.32 lib/sportradar/api/error.rb
sportradar-api-0.10.31 lib/sportradar/api/error.rb
sportradar-api-0.10.30 lib/sportradar/api/error.rb
sportradar-api-0.10.29 lib/sportradar/api/error.rb