Sha256: c3d6f75aca90cf630660267429ca8e6929109caa615328777d165c7cab0bfe43
Contents?: true
Size: 779 Bytes
Versions: 1
Compression:
Stored size: 779 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, :status_code, :status def initialize(response_status, response_code, response_message = nil) @status_code = response_code @status = response_status @message = response_message end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sportradar-api-0.1.2 | lib/sportradar/api/error.rb |