Here is a working example:

// Throw _com_error exception with our own bespoke description
void DbUtil::throwComErrorExceptionWithDescription(const wstring& desc, const _com_error& e) const
{...