Skip to content
Snippets Groups Projects
Commit 72c0e47e authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

in error message that should never be raised: "BUG" -> "Bug"

parent 447a8a7d
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ public:
std::unique_lock<std::mutex> single_lock( single_mutex );
if( !m_instance) {
if( m_destroyed )
throw std::runtime_error("BUG in ISingleton: object was destructed!");
throw std::runtime_error("Bug in ISingleton: object was destructed!");
static T theInstance;
m_instance = &theInstance;
}
......
......@@ -566,7 +566,7 @@ void FormFactorPolyhedron::assert_platonic() const
pyramidal_volume /= m_faces.size();
for( const auto& Gk: m_faces )
if (std::abs(Gk.pyramidalVolume()-pyramidal_volume) > 160*eps*pyramidal_volume) {
std::cerr<<std::setprecision(16)<<"BUG: pyr_volume(this face)="<<
std::cerr<<std::setprecision(16)<<"Bug: pyr_volume(this face)="<<
Gk.pyramidalVolume()<<" vs pyr_volume(avge)="<<pyramidal_volume<<"\n";
throw std::runtime_error("Deviant pyramidal volume in "+getName());
}
......
......@@ -67,7 +67,7 @@ void ParameterPool::addParameter(RealParameter* newPar)
for (const auto* par: m_params )
if( par->getName()==newPar->getName() )
throw std::runtime_error(
"BUG in ParameterPool::addParameter(): "
"Bug in ParameterPool::addParameter(): "
"Parameter '"+newPar->getName()+"' is already registered");
m_params.push_back(newPar);
}
......@@ -210,8 +210,7 @@ void ParameterPool::report_set_value_error(const std::string& parname, double va
try {
ostr << " Parameter limits " << getParameter(parname)->getAttLimits() << ".\n";
} catch (...) {
throw std::runtime_error(
"DOUBLE BUG in ParameterPool: cannot even report the error");
throw std::runtime_error("Bug de luxe in ParameterPool: cannot even report the error");
}
throw std::runtime_error(ostr.str());
}
......@@ -45,7 +45,7 @@ void RealParameter::checkNull() const
{
if(isNull())
throw std::runtime_error(
"BUG in RealParameter::getValue() -> Attempt to access uninitialised pointer.");
"Bug in RealParameter::getValue() -> Attempt to access uninitialised pointer.");
}
void RealParameter::setValue(double value)
......
......@@ -53,7 +53,7 @@ double FormFactorCrystal::getRadialExtension() const
complex_t FormFactorCrystal::evaluate_for_q(const cvector_t) const
{
throw Exceptions::LogicErrorException(
"BUG: evaluate_for_q() should never be called explicitly for FormFactorCrystal");
"Bug: evaluate_for_q() should never be called explicitly for FormFactorCrystal");
}
complex_t FormFactorCrystal::evaluate(const WavevectorInfo& wavevectors) const
......
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