# Error Handling¶

Every action inside a mathlet can use the internal error handling system to provide a quality feedback of unexpected errors during the execution.

In order to catch an error, the following block must surround an action inside a mathlet:

try {
...
} catch(Throwable t) {
reportError(t);
}


The only actions during execution are the applet instance methods and actions inside the user interface (i.e. events).

Add picture from clipboard (Maximum size: 500 MB)