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.
 
 
 

41 lines
759 B

import string
class CannotCastToSteamID(Exception):
pass
class NotLoadProfile(Exception):
pass
class NeedDiscordAuthOfSteam(Exception):
pass
class LowPermition(Exception):
pass
class NotFoundPlayerOnServer(Exception):
pass
class UnknownBackendResponse(Exception):
def __init__(self, request_url: string = None, response = None, *args: object) -> None:
super().__init__(*args)
self.request_url = request_url
self.response = response
print(self.__str__())
@property
def status_code(self):
try:
return self.response.status
except:
return 0
def __str__(self) -> str:
try:
return f"{self.request_url}, response code: {self.status_code}"
except:
return "Cannot str exception"
class AdminLowPermition(Exception):
pass