Hiding exception errors?


I have a problem with the exception errors, specifically with the orange boxes that they generate. I would like to hide them for the time being, but I’m not exactly sure how. The book says about setErrorHandler(), but I’m afraid I don’t really undestand how to use that - could anyone provide an example?

Thanks in advance.

The example in the book chapter 4.5.3 should be quite self-explanatory. This error handler replaces the default functionality with the boxes, with showing the error on the page as a regular Label component instead.


You could react differently depending on you application of course. You might want to just log the exception and do nothing else or then restart you application silently and restore the state before the exception somehow. All this is depending on your application and what fits it the best.