SketcherGui: Separate user and developer errors

===============================================

Revisiting all console calls:
- Using the Notification Framework when the user needs to be notified
- Turning them into DeveloperError/DeveloperWarnings when messages are intended only for developers
This commit is contained in:
Abdullah Tahiri
2023-05-24 20:47:20 +02:00
committed by abdullahtahiriyo
parent cc091b2703
commit fdd3525424
27 changed files with 162 additions and 60 deletions

View File

@@ -303,7 +303,7 @@ void EditModeCoinManager::ParameterObserver::subscribeToParameters()
hGrpu->Attach(this);
}
catch(const Base::ValueError & e) { // ensure that if parameter strings are not well-formed, the exception is not propagated
Base::Console().Error("EditModeCoinManager: Malformed parameter string: %s\n", e.what());
Base::Console().DeveloperError("EditModeCoinManager", "Malformed parameter string: %s\n", e.what());
}
}
@@ -323,7 +323,7 @@ void EditModeCoinManager::ParameterObserver::unsubscribeToParameters()
hGrpu->Detach(this);
}
catch(const Base::ValueError & e) {// ensure that if parameter strings are not well-formed, the program is not terminated when calling the noexcept destructor.
Base::Console().Error("EditModeCoinManager: Malformed parameter string: %s\n", e.what());
Base::Console().DeveloperError("EditModeCoinManager", "Malformed parameter string: %s\n", e.what());
}
}