总结:每个类几乎都是由显式带一个参数的构造函数,析构函数, Doraise()函数和一个字符串对象组成.
类之间的关系:
class logic_error; // : public exception
class domain_error; // : public logic_error
class invalid_argument; // : public logic_error
class length_error; // : public logic_error
class out_of_range; // : public logic_error
class runtime_error; // : public exception
class range_error; // : public runtime_error
class overflow_error; // : public runtime_error
class underflow_error; // : public runtime_error
在看看<exception>文件
继续追踪看<eh.h>文件
总结:由EH.h和exception文件可得出
typedef const char *__exString;
class exception;
class _bad_exception : public exception ;
bool _ uncaught_exception();
typedef void ( *terminate_function)();
typedef void ( *unexpected_function)();
typedef void ( *terminate_handler)();
typedef void ( *unexpected_handler)();
typedef void ( *_se_translator_function)(unsigned int, struct _EXCEPTION_POINTERS*);
void terminate();
void unexpected();
terminate_handler set_terminate(terminate_handler) throw();
unexpected_handler set_unexpected(unexpected_handler) throw();