Sha256: 0012b97f885f5701ccd4ac58dba4fbb1d6e8b9b80ca300f886e4e34f39627be4
Contents?: true
Size: 725 Bytes
Versions: 2
Compression:
Stored size: 725 Bytes
Contents
# frozen_string_literal: true module Shodanz module Errors class RateLimited < StandardError def initialize(msg = 'Request rate limit reached (1 request/ second). Please wait a second before trying again and slow down your API calls.') super end end class NoInformation < StandardError def initialize(msg = 'No information available.') super end end class NoAPIKey < StandardError def initialize(msg = 'No API key has been found or provided! ( setup your SHODAN_API_KEY environment varialbe )') super end end class NoQuery < StandardError def initialize(msg = 'Empty search query.') super end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shodanz-2.0.1 | lib/shodanz/errors.rb |
shodanz-2.0.0 | lib/shodanz/errors.rb |