std::exception::exception
exception(); | (1) | |
|---|---|---|
exception( const exception& other ); | (2) | |
构造新的异常对象。
1%29默认构造函数。what()返回空字符串。
2%29复制构造函数。将内容初始化为other
参数
other | - | another exception to assign the contents of |
|---|
例外
(none) | (until C++11) |
|---|---|
noexcept specification: noexcept | (since C++11) |
注记
因为复制std::exception当派生类%28(如std::runtime_error%29必须管理用户定义的诊断消息,它通常是作为一个复制到写字符串来实现的.
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

