Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 256 Bytes

NDK系列8_c++基础3_异常.md

File metadata and controls

25 lines (20 loc) · 256 Bytes

【NDK系列】c++ 异常

try {
	test1();
}
catch (const char *m) {
	cout << m << endl;
}
//自定义
class MyException : public exception
{
public:
   virtual char const* what() const
    {
        return "myexception";
    }
};