| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 | class validator_exception(Exception):    def __init__(self, name: str) -> None:        super().__init__("Invalid property names: " + name + ".")class exists_exception(Exception):    def __init__(self, name: str) -> None:        super().__init__("Item with this " + name + " already in database.")class bad_request_exception(Exception):    def __init__(self, content: str) -> None:        super().__init__("Bad request: " + content + ".")class not_found_exception(Exception):    def __init__(self) -> None:        super().__init__("Not found required target.")class not_ready_exception(Exception):    def __init__(self, target: any) -> None:        dump = str(target)        what = str(type(target))                info = "Can not work, because " + what + " is not raeady.\n"        info = info + "Dump:\n" + what + "\n\n"        super().__init__(info)class in_collection_exception(Exception):    passclass config_exception(Exception):    passclass access_denied_exception(Exception):    def __init__(self) -> None:        super().__init__("Being logged in is required to access this.")class image_exception(Exception):    def __init__(self) -> None:        super().__init__("This is not property image file.")class directory_image_exception(Exception):    passclass autoadder_exception(Exception):    passclass image_save_exception(Exception):    def __init__(self, before: Exception) -> None:        super().__init__("Can not save image: " + str(before))class incomplete_request_exception(Exception):    def __init__(self, name: str) -> None:        content = "Request is not complete. This endpoint require "         content = content + "\"" + name + "\"."        super().__init__(content)class reservation_exception(Exception):    passclass empty_field_exception(Exception):    def __init__(self, name: str) -> None:        super().__init__("Field " + name + " is empty. Fill it.")class reservation_loader_exception(Exception):    passclass database_exception(Exception):    def __init__(self) -> None:        super().__init__("Database can not commit changes.")class incorrect_target_exception(Exception):    pass
 |