In practice, Session.resume_data() will be used without checking there
is deferred data or not. Actually, there is no API to check this. So
it is better not to raise exception. Instead return False to notify
error. If the method succeeds, it returns True.