Sha256: ef12df13fdd81979cf7acb04277f327b2973a3803883d30ab0ca9b36a3b8a1bb

Contents?: true

Size: 405 Bytes

Versions: 5

Compression:

Stored size: 405 Bytes

Contents

module Steam
  # Error returning the requested object from the Steam API
  class SteamError < StandardError
    def initialize(error = 'The API request has failed')
      super(error)
    end
  end

  # Error returning the requested object from the Steam API
  class JSONError < StandardError
    def initialize(error = 'The API returned an unexpected JSON response')
      super(error)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
steam-api-1.1.0 lib/steam-api/exceptions.rb
steam-api-1.0.3 lib/steam-api/exceptions.rb
steam-api-1.0.2 lib/steam-api/exceptions.rb
steam-api-1.0.1 lib/steam-api/exceptions.rb
steam-api-1.0.0 lib/steam-api/exceptions.rb