def METHOD_NAME(self, error_type: Type[Exception]):
    if not self._smb_client.connected():
        raise error_type(
            "This operation cannot be performed until authentication is successful"
        )