You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
540 B

from fastapi import WebSocketException
class BadUrlException(WebSocketException):
def __init__(self):
self.code = 1000
self.reason = "There is something wrong with the url you provided,\
please check and try again."
class InvalidCrawlType(WebSocketException):
def __init__(self):
self.reason = "Invalid Crawl Type"
self.code = 1000
class InvalidContent(WebSocketException):
def __init__(self):
self.reason = "Bad Content, Try Again"
self.code = 1000