DynamicObject::Ptr owner = GetOwnerByCommentID(id);
if (!owner)
- throw_exception(invalid_argument("Comment ID does not exist."));
+ return;
Dictionary::Ptr comments = owner->Get("comments");
map<int, String>::iterator it = m_LegacyCommentCache.find(id);
if (it == m_LegacyCommentCache.end())
- throw_exception(invalid_argument("Invalid legacy comment ID specified."));
+ return Empty;
return it->second;
}
DynamicObject::Ptr owner = GetOwnerByCommentID(id);
if (!owner)
- throw_exception(invalid_argument("Comment ID does not exist."));
+ return Dictionary::Ptr();
Dictionary::Ptr comments = owner->Get("comments");