📄 exception.h
字号:
#ifndef MYEXCEPTION_H#define MYEXCEPTION_H#include <QString>#include "myexport.h"/** A base class for user defined Exceptions. We may replace this class with a standard exception, as soon as I can find one I like. For now, @ref assertequalsex.h throws exceptions and @ref TestCase will catch them. @author S. Alan Ezust sae@mcs.suffolk.edu */class UTILS_EXPORT Exception : public QString {public: Exception(QString message=QString()) : QString(message) {} /** By defining a conversion opreator to const char*, we can place this inside a qDebug() call */ virtual ~Exception() {}private:};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -