MSPException[type]
is an exception that can be thrown by webMathematica page commands.


MSPException
MSPException[type]
is an exception that can be thrown by webMathematica page commands.
Details
- A number of MSP commands throw an MSPException when some error situation occurs. These are caught by the page processing code, but it is permissible for a page author to catch them and process them in some intermediate step.
- The following exceptions can be thrown by MSPBlock:
-
MSPException["ParseError"] if the value cannot be interpreted by the Wolfram Kernel MSPException["SecurityError"] if the value does not pass the security test MSPException["ValueError"] if the value is not a string; this indicates a programmatic error by the page author MSPException["VariableError"] if the variable is not a Wolfram Language symbol; this indicates a programmatic error by the page author MSPException["NoValueError"] if a variable has no value MSPException["VersionError"] if a version mismatch problem is found
Examples
Basic Examples (1)
If a variable cannot be interpreted, a ParseError exception is thrown. Since the values may be entered from the client, this does not indicate an author error:

If the result of interpretation does not pass the security check, a SecurityError exception is thrown. Since the values may be entered from the client, this does not indicate an author error:
If a variable that is not a Wolfram Language symbol is encountered, a VariableError exception is thrown. This usually indicates an author error:
If a value that is not a Wolfram Language string is encountered, a ValueError exception is thrown. This usually indicates an author error:
Text
Wolfram Research (1996), MSPException, Wolfram Language function, https://reference.wolfram.com/language/WolframWebEngine/ref/MSPException.html.
CMS
Wolfram Language. 1996. "MSPException." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/WolframWebEngine/ref/MSPException.html.
APA
Wolfram Language. (1996). MSPException. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/WolframWebEngine/ref/MSPException.html
BibTeX
@misc{reference.wolfram_2025_mspexception, author="Wolfram Research", title="{MSPException}", year="1996", howpublished="\url{https://reference.wolfram.com/language/WolframWebEngine/ref/MSPException.html}", note=[Accessed: 25-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_mspexception, organization={Wolfram Research}, title={MSPException}, year={1996}, url={https://reference.wolfram.com/language/WolframWebEngine/ref/MSPException.html}, note=[Accessed: 25-August-2025]}