Skip to main content



      Home
Home » Modeling » TMF (Xtext) » How to cleanly handle runtime exceptions in AbstractModelInferrer
How to cleanly handle runtime exceptions in AbstractModelInferrer [message #1835496] Fri, 04 December 2020 14:29 Go to next message
Eclipse UserFriend
So I know about the XbaseValidator and that I can create error/warning checks, but can I also handle errors from the infer method of an AbstractModelInferrer? Say I have a runtime exception during code generation, is there a way I can handle the exception and cleanly report it as an error on a particular EObject or do I have to check for that condition in the validator separately? I noticed that a runtime exception in the infer method usually just puts an error on line 0 of the source file with the exception message.

Thank you all for you continued advice and help on this forum!
Re: How to cleanly handle runtime exceptions in AbstractModelInferrer [message #1835499 is a reply to message #1835496] Fri, 04 December 2020 15:11 Go to previous message
Eclipse UserFriend
hi, i am not aware of such a thing. but as such a exception would be a programming error on your side, i have doubts an end use would be able to deal with an EObject specific error
Previous Topic:Add tag/separator/... to organise outline view
Next Topic:New Xtext project from ECore - Packaging error
Goto Forum:
  


Current Time: Wed Jul 09 22:14:50 EDT 2025

Powered by FUDForum. Page generated in 0.04690 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top