Skip to content
Snippets Groups Projects
Commit 0eedf7f6 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Improved "not implemented" errors

parent 0d33ca05
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,7 @@ public:
void updateConsummerProducer() override;
void forward() override;
void backward() override {
assert(false && "not implemented");
AIDGE_THROW_OR_ABORT(std::runtime_error, "backward() not implemented yet for a MetaOperator");
}
inline bool isAtomic() const noexcept override final { return false; }
......
......@@ -129,9 +129,9 @@ void Aidge::OperatorImpl::resetConsummerProducer(){
}
void Aidge::OperatorImpl::forward() {
AIDGE_THROW_OR_ABORT(std::runtime_error, "forward() not implemented");
AIDGE_THROW_OR_ABORT(std::runtime_error, "forward() not implemented yet for operator of type {}", mOp.type());
}
void Aidge::OperatorImpl::backward() {
AIDGE_THROW_OR_ABORT(std::runtime_error, "backward() not implemented");
AIDGE_THROW_OR_ABORT(std::runtime_error, "backward() not implemented yet for operator of type {}", mOp.type());
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment