lib/shodanz/errors.rb in shodanz-2.0.1 vs lib/shodanz/errors.rb in shodanz-2.0.2

- old
+ new

@@ -23,7 +23,19 @@ class NoQuery < StandardError def initialize(msg = 'Empty search query.') super end end + + class AccessDenied < StandardError + def initialize(msg = 'Shodan subscription doesn\'t support action, check API permissions!') + super + end + end + + class InvalidKey < StandardError + def initialize(msg = 'Invalid API key used, or none given!') + super + end + end end end