theHarvester/discovery/shodan/exception.py
laramies 973220d3d1 Release 3.0
Added Port scanning, Subdomain takeover, Fixed Shodan, improved Dns bruteforce and added SQLite support to store the results.
2018-08-08 21:34:10 +02:00

21 lines
420 B
Python

class WebAPIError(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return self.value
class APIError(Exception):
"""This exception gets raised whenever a non-200 status code was returned by the Shodan API."""
def __init__(self, value):
self.value = value
def __str__(self):
return self.value
class APITimeout(APIError):
pass