How to handle OSCFormatError exception for OSCReceiver ? (self answered)


I’m building an application using OSC. I can’t control what my users will send and it appears that some of my users are sending bad data (at least from JUCE’s perspective).
The problem is that when they do that, the receiver throws an OSCFormatError exception and the software crashes.
I can’t find a way to handle those exceptions and log something instead, because the throws happen inside the OSCReceiver class and I don’t see anything allowing to override the exception behavior, and nowhere to enclose those errors in a try-catch.

Am I missing something or should there be an error callback option ?



My bad, I just didn’t see the formatHandlerError in the doc…