I have been trying to implement Python Exceptions in order to control the flow of the dynamo code and inform the user (in case of using the file in Dynamo or in Dynamo Player) so they know what the problem is. It could sound a bit odd but sometimes the input have to accomplish some conditions (as in levels to have different names, if not revit is going to crash).
I have already create a python code that raise an exception with a message that shows only in dynamo workspace and stop the processing returning a null object. Nevertheless, if i add-in this code inside a custom node the error is invissible and no message is seen. I would like to achieve the full view of this message anyway, in the custom code box and inside the Dynamo Player space.
This is the code i used inside my custom node, but it only shows inside of it, not in the general sheet.
Thank you very much