exception
class exception {
public:
exception() throw();
exception(const exception& rhs) throw();
exception& operator=(const exception& rhs) throw();
virtual ~exception() throw();
virtual const char *what() const throw();
};
The class serves as the base class for all exceptions thrown by certain expressions and by the Standard C++ library. The C string value returned by what() is left unspecified by the default constructor, but may be defined by the constructors for certain derived classes. None of the member functions throw any exceptions.
C++异常处理基础
本文介绍了一个用于C++异常处理的基础类。此类为所有由特定表达式及标准C++库抛出的异常提供基类。重点讲解了默认构造函数及成员函数what()的功能,该函数返回一个C风格字符串,描述异常的具体情况。
1425

被折叠的 条评论
为什么被折叠?



