Sha256: 422be504f6a8720eba092048e0e0d2c2cc70baf08cae58f50798b3ae2cf7508c

Contents?: true

Size: 774 Bytes

Versions: 55

Compression:

Stored size: 774 Bytes

Contents

module Sportradar
  module Api
    class Error < StandardError
      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

55 entries across 55 versions & 1 rubygems

Version Path
sportradar-api-0.20.2 lib/sportradar/api/error.rb
sportradar-api-0.20.1 lib/sportradar/api/error.rb
sportradar-api-0.20.0 lib/sportradar/api/error.rb
sportradar-api-0.20.0.pre2 lib/sportradar/api/error.rb
sportradar-api-0.20.0.pre lib/sportradar/api/error.rb
sportradar-api-0.19.6 lib/sportradar/api/error.rb
sportradar-api-0.19.5 lib/sportradar/api/error.rb
sportradar-api-0.19.4 lib/sportradar/api/error.rb
sportradar-api-0.19.3 lib/sportradar/api/error.rb
sportradar-api-0.19.2 lib/sportradar/api/error.rb
sportradar-api-0.19.1 lib/sportradar/api/error.rb
sportradar-api-0.19.0 lib/sportradar/api/error.rb
sportradar-api-0.18.1 lib/sportradar/api/error.rb
sportradar-api-0.18.0 lib/sportradar/api/error.rb
sportradar-api-0.17.6 lib/sportradar/api/error.rb
sportradar-api-0.17.5 lib/sportradar/api/error.rb
sportradar-api-0.17.5.pre lib/sportradar/api/error.rb
sportradar-api-0.17.4 lib/sportradar/api/error.rb
sportradar-api-0.17.3 lib/sportradar/api/error.rb
sportradar-api-0.17.2 lib/sportradar/api/error.rb