OpenRoberta / openroberta-lab

The programming environment »Open Roberta Lab« by Fraunhofer IAIS enables children and adolescents to program robots. A variety of different programming blocks are provided to program motors and sensors of the robot. Open Roberta Lab uses an approach of graphical programming so that beginners can seamlessly start coding. As a cloud-based application, the platform can be used without prior installation of specific software but runs in any popular browser, independent of operating system and device.
Apache License 2.0
124 stars 121 forks source link

common error codes #162

Open ensonic opened 8 years ago

ensonic commented 8 years ago

The improvements need a clear concept before starting implementing

Robot-Server-Protocol defines a few values for the "Nepo Exit Value" field. We need to expand those to map all kind of failure cases on the robot:

We can use those to show sensible error messages on the UI.

For a start we should have a enum with the error code in the sources . Right now it is just an int (search codebase for nepoExitValue). We can link this from the protocol wiki page.

Ideally we can't also send some optional text in addition to the 'nepoexitvalue' ('nepoexitdetails' ?). This won't be covered by the translations, but could be shown as 'Details' in the UI. See: https://github.com/OpenRoberta/robertalab/blob/master/OpenRobertaServer/staticResources/js/app/roberta/controller/guiState.controller.js#L120

ensonic commented 6 years ago

It would be nice to have some code-line to block mapping, so that if the running program reports an error, we can attribute it to the block that cased it.

bjost2s commented 5 years ago

related to #165