webMathematica >

Handling Errors

There are a number of ways that webMathematica computations can lead to an error. An input might fail the security test, the computation might take too long so that the Mathematica kernel is restarted, or there might be some type of page logic error. You can learn about certain types of errors and, often, solve them using the logging system. However, it is not possible to avoid all errors, for example you cannot predict all inputs to the server, so some of them might fail the security test. In these cases you might want to customize the way the error is handled.

Catching Mathematica Error Exceptions

webMathematica throws errors in Mathematica as MSPException expressions, and you can add code to catch these. The exceptions that can be caught are listed below.

Adding an HTTP Error Page