Skip to content
Snippets Groups Projects
Commit 5e5c19db authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

made an exception description a bit more elaborate

parent 100cf1bc
No related branches found
No related tags found
No related merge requests found
......@@ -75,8 +75,11 @@ namespace ChimeraTK {
if( castedSlave->getNumberOfSamples() != 0 &&
( castedSlave->getNumberOfChannels() != impl->getNumberOfChannels() ||
castedSlave->getNumberOfSamples() != impl->getNumberOfSamples() ) ) {
throw ApplicationExceptionWithID<ApplicationExceptionID::illegalParameter>(
"FanOut::addSlave(): Trying to add a slave with incompatible array shape!");
std::string what = "FanOut::addSlave(): Trying to add a slave '";
what += castedSlave->getName();
what += "' with incompatible array shape! Name of master: ";
what += impl->getName();
throw ApplicationExceptionWithID<ApplicationExceptionID::illegalParameter>(what.c_str());
}
slaves.push_back(castedSlave);
}
......
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