Files
NeuralNetworkLib/include/NeuralNetwork/ConstructiveAlgorithms/CelularEncoding/Exception.h
2016-05-18 22:57:06 +02:00

23 lines
410 B
C++

#pragma once
#include <exception>
#include <string>
namespace NeuralNetworks {
namespace ConstructiveAlgorithms {
namespace CelularEncoding {
class Exception : public std::exception {
public:
Exception (const std::string &e) : _what(e) {
}
virtual const char* what() const noexcept override {
return _what.c_str();
}
protected:
std::string _what;
};
}
}
}