testpluginexception.cpp

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

CPP
51
字号
// //////////////////////////////////////////////////////////////////////////// Implementation file TestPlugInException.cpp for class TestPlugInException// (c)Copyright 2000, Baptiste Lepilleur.// Created: 2001/06/23// //////////////////////////////////////////////////////////////////////////#include "StdAfx.h"#include "TestPlugInException.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endifTestPlugInException::TestPlugInException( std::string message,                                           Cause cause ) :     runtime_error( message ),    m_cause( cause ){}TestPlugInException::TestPlugInException( const TestPlugInException &copy ) :     runtime_error( copy ){}TestPlugInException::~TestPlugInException(){}TestPlugInException &TestPlugInException::operator =( const TestPlugInException &copy ){  runtime_error::operator =( copy );  m_cause = copy.m_cause;  return *this;}TestPlugInException::Cause TestPlugInException::getCause() const{  return m_cause;}

⌨️ 快捷键说明

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