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

@@ -129,7 +129,7 @@ CurveConverter::CurveConverter()
hGrp->Attach(this);
}
catch(const Base::ValueError & e) { // ensure that if parameter strings are not well-formed, the exception is not propagated
Base::Console().Error("CurveConverter: Malformed parameter string: %s\n", e.what());
Base::Console().DeveloperError("CurveConverter", "Malformed parameter string: %s\n", e.what());
}
updateCurvedEdgeCountSegmentsParameter();
@@ -142,7 +142,7 @@ CurveConverter::~CurveConverter()
hGrp->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("CurveConverter: Malformed parameter string: %s\n", e.what());
Base::Console().DeveloperError("CurveConverter", "Malformed parameter string: %s\n", e.what());
}
}