23 lines
410 B
C++
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;
|
|
};
|
|
}
|
|
}
|
|
} |