VideoWriter::write error handling

Why does the VideoWriter::write method not return any error or similar to check, if the write succeeded? The API is pretty useless in this state