testpluginexception.h

来自「cppunit-1.12.0.rar c++代码的单元测试 运行时应先编译src」· C头文件 代码 · 共 61 行

H
61
字号
// //////////////////////////////////////////////////////////////////////////// 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 &copy );  /*! Destructor.   */  virtual ~TestPlugInException();  /*! Copy operator.   * @param copy Object to copy.   * @return Reference on this object.   */  TestPlugInException &operator =( const TestPlugInException &copy );  Cause getCause() const;private:  Cause m_cause;};// Inlines methods for TestPlugInException:// ----------------------------------------#endif  // TESTPLUGINEXCEPTION_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?