📄 testpluginexception.h
字号:
// //////////////////////////////////////////////////////////////////////////// Header file TestPlugInException.h for class TestPlugInException// (c)Copyright 2000, Baptiste Lepilleur.// Created: 2001/06/23// //////////////////////////////////////////////////////////////////////////#ifndef TESTPLUGINEXCEPTION_H#define TESTPLUGINEXCEPTION_H#include <stdexcept>#include <string>/*! \class TestPlugInException * \brief This class represents a failure of using the test plug-in. */class TestPlugInException : public std::runtime_error{public: enum Cause { failedToLoadDll =0, failedToCopyDll, failedToGetInterfaceFunction, failedToMakeTest }; /*! Constructs a TestPlugInException object. */ TestPlugInException( std::string message, Cause cause ); /*! Copy constructor. * @param copy Object to copy. */ TestPlugInException( const TestPlugInException © ); /*! Destructor. */ virtual ~TestPlugInException(); /*! Copy operator. * @param copy Object to copy. * @return Reference on this object. */ TestPlugInException &operator =( const TestPlugInException © ); Cause getCause() const;private: Cause m_cause;};// Inlines methods for TestPlugInException:// ----------------------------------------#endif // TESTPLUGINEXCEPTION_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -