Idea

Sam avatar image
2 Likes"
Sam suggested Joerg Vogel commented

Adding exception handling to flexscript

Exception handling is a critical feature for any programming language, and it's especially important for complex simulation software like FlexSim. The current FlexScript API does not support modern exception handling, which can make simulations less reliable, more difficult to debug, and slower to perform.

I propose that the FlexSim team add modern exception handling to the FlexScript API. This would allow developers to:

  • Try/catch/finally blocks: This would allow developers to handle exceptions explicitly, and to ensure that resources are cleaned up even if an exception occurs.
  • Exception classes: This would allow developers to create custom exception classes to represent different types of errors.
  • Stack traces: This would provide developers with detailed information about the call stack at the time an exception occurred.

I believe that the addition of modern exception handling would be a significant improvement to FlexSim.


exceptionstack tracetry catch
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Comment

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel commented

I think, you aware of that there exists a SDK. I have seen several scripting languages for industrial products to support hardware or software. But as I see this, this is not a common feature for such products and their scripting languages. CAD, CAM, Robot Simulation Programs and so on use in such cases a SDK to support higher languages of the “C“-family.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write a Comment

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.

Related Ideas