#pragma once #include #include 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; }; } } }