Replaced some missed ThrowError instances with BOOST_THROW_EXCEPTION.