-
Cheers @hx2A ! Should I report an issue and propose a message when I get an exception from Processing that maybe could have a more helpful message for learners? For instance, if you try to use a
Could perhaps become something like (if it is feasible):
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
py5's custom exception handing is here, currently handling all My vision for this was for it to be expanded to more exceptions, kind of like p5's friendly error system. Also, for it to be easily customizable by educators for the specific needs of their students. For example, you might want to customize it to provide exceptions in portuguese instead of english, or maybe have exceptions that provide URLs to documentation you create for a class. However, looking at the example you have brought up, I see it doesn't handle what you want so well. It could work, but now you'd need to manage all Java Exceptions messages, not just the ones caused by using methods outside of the begin/end shape block. I see ways that this functionality could be improved. How about we revisit this after the next release? I could make some improvements so it can achieve its potential, and you use it to customize the exceptions? We can come up with something that handles this and many other exceptions as well. |
Beta Was this translation helpful? Give feedback.
The error messages are all over the place, but for a lot of them there is a pattern to it. It wouldn't be that hard to extract all of them because we can look for the places where exceptions are raised.
Right, that will be a good approach.