Throw exceptions on empty datastreams