We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technical expertise
Generate compiled code with the default CompilerRuntimeErrorAction:
There is an error due to integer overflow and the computation is rerun by the evaluator:
Generate compiled code with CompilerRuntimeErrorAction set to None:
Now the error is not rerun in the Wolfram Engine; instead a Failure is returned:
If the function contains code specific for the compiler, the default setting of CompilerRuntimeErrorAction does not run in the evaluator:
Generate compiled code with CompilerRuntimeErrorAction set to None:
Now the error is not rerun in the Wolfram Engine:
Setting CompilerRuntimeErrorAction to "Evaluate" indicates that if any error occurs, the computation will be rerun in the evaluator:
Now the error is rerun in the Wolfram Engine:
CompilerRuntimeErrorAction can take a function to apply to the failure object:
The failure is returned wrapped in a frame:
Wolfram Research (2024), CompilerRuntimeErrorAction, Wolfram Language function, https://reference.wolfram.com/language/ref/CompilerRuntimeErrorAction.html. TextWolfram Research (2024), CompilerRuntimeErrorAction, Wolfram Language function, https://reference.wolfram.com/language/ref/CompilerRuntimeErrorAction.html.
CMSWolfram Language. 2024. "CompilerRuntimeErrorAction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CompilerRuntimeErrorAction.html.
APAWolfram Language. (2024). CompilerRuntimeErrorAction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CompilerRuntimeErrorAction.html
BibTeX@misc{reference.wolfram_2025_compilerruntimeerroraction, author="Wolfram Research", title="{CompilerRuntimeErrorAction}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/CompilerRuntimeErrorAction.html}", note=[Accessed: 17-August-2025]}
BibLaTeX@online{reference.wolfram_2025_compilerruntimeerroraction, organization={Wolfram Research}, title={CompilerRuntimeErrorAction}, year={2024}, url={https://reference.wolfram.com/language/ref/CompilerRuntimeErrorAction.html}, note=[Accessed: 17-August-2025]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4