流异常文章 [英] Streaming exception article
本文介绍了流异常文章的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
很久以前,我阅读了Herb Sutter的一篇文章(可能),介绍了一个良好/安全的方法,能够在抛出异常时流式处理。它可能是在Dobbs博士杂志。
A long time ago I read an article (probably) by Herb Sutter that introduced a good/safe method of being able to stream to an exception as it was being throw. It may have been in Dr Dobbs magazine.
像这样:
throw MyException() << "And this is my error message";
有没有人记得这篇文章,还有一个链接?
Does anyone remember the article and have a link too it?
EDIT
实际上文章是由Gigi Sayfan撰写的
Actually article was written by Gigi Sayfan
推荐答案
Practical C++ Error Handling in Hybrid Environments
这篇关于流异常文章的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文