草庐IT

WrongParameterException

全部标签

c++ - 在 C++ 中创建新异常

我有一个C++类,我想在Ubuntu中运行它:#ifndefWRONGPARAMETEREXCEPTION_H_#defineWRONGPARAMETEREXCEPTION_H_#include#include#includeusingnamespacestd;#pragmaonceclassWrongParameterException:publicexception{public:WrongParameterException(char*message):exception(message){};virtual~WrongParameterException()throw(){};

c++ - 在 C++ 中创建新异常

我有一个C++类,我想在Ubuntu中运行它:#ifndefWRONGPARAMETEREXCEPTION_H_#defineWRONGPARAMETEREXCEPTION_H_#include#include#includeusingnamespacestd;#pragmaonceclassWrongParameterException:publicexception{public:WrongParameterException(char*message):exception(message){};virtual~WrongParameterException()throw(){};