Commit 66850f2f by bernhard-gatzhammer

Modified exception text to not to contain implementation details.

EMBB-509
parent 8b03daef
......@@ -74,7 +74,7 @@ void Spinlock::Lock() {
// Currently, embb_spin_lock will always return EMBB_SUCCESS. However,
// This might change.
if (status != EMBB_SUCCESS) {
EMBB_THROW(ErrorException, "Error in embb_spin_lock");
EMBB_THROW(ErrorException, "Error during locking spinlock");
}
}
......@@ -85,7 +85,7 @@ bool Spinlock::TryLock(unsigned int number_spins) {
return false;
}
else if (status != EMBB_SUCCESS) {
EMBB_THROW(ErrorException, "Error in embb_spin_try_lock");
EMBB_THROW(ErrorException, "Error during try-locking spinlock");
}
return true;
......@@ -95,7 +95,7 @@ void Spinlock::Unlock() {
int status = embb_spin_unlock(&spinlock_);
if (status != EMBB_SUCCESS) {
EMBB_THROW(ErrorException, "Error in embb_spin_unlock");
EMBB_THROW(ErrorException, "Error during unlocking spinlock");
}
}
} // namespace base
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment