ErrorBox
✖
ErrorBox
is a low-level box construct that represents boxes that cannot be interpreted in input or output.
Details

- ErrorBox[boxes] typically displays as the raw form of boxes together with underlining that indicates parts that cannot be interpreted.
- An explicit ErrorBox is typically generated by a failed call to MakeExpression.
- When the front end reads an invalid box structure from a Notebook or Cell expression, it generates an implicit ErrorBox, but it preserves the original structure when the expression is written out.
- ErrorBox is displayed as a pink box. The pink box may have a tooltip or contents that help to indicate the nature of the error.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
MakeExpression generates ErrorBox structure when incomplete syntax is detected:

https://wolfram.com/xid/0tzv2inq-cyqsxu

Displaying the ErrorBox shows a pink box:

https://wolfram.com/xid/0tzv2inq-5wxy92

An invalid box argument may generate an ErrorBox:

https://wolfram.com/xid/0tzv2inq-q0ilbs

Scope (3)Survey of the scope of standard use cases
An implicit ErrorBox may indicate a bad graphics expression:

https://wolfram.com/xid/0tzv2inq-2zojst

An implicit ErrorBox in a control or Dynamic indicates a message during evaluation:

https://wolfram.com/xid/0tzv2inq-ndifak

A bad option value on the right-hand side can lead to an implicit ErrorBox:

https://wolfram.com/xid/0tzv2inq-8wfuyg

Properties & Relations (2)Properties of the function, and connections to other functions
An ErrorBox generated by the kernel typesetting can be read using NotebookRead:

https://wolfram.com/xid/0tzv2inq-yyak7u


https://wolfram.com/xid/0tzv2inq-lo5r3h

Erroneous boxes display as an ErrorBox, but NotebookRead mirrors the bad input:

https://wolfram.com/xid/0tzv2inq-l8l93a


https://wolfram.com/xid/0tzv2inq-24i5ff

Wolfram Research (1996), ErrorBox, Wolfram Language function, https://reference.wolfram.com/language/ref/ErrorBox.html.
Text
Wolfram Research (1996), ErrorBox, Wolfram Language function, https://reference.wolfram.com/language/ref/ErrorBox.html.
Wolfram Research (1996), ErrorBox, Wolfram Language function, https://reference.wolfram.com/language/ref/ErrorBox.html.
CMS
Wolfram Language. 1996. "ErrorBox." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ErrorBox.html.
Wolfram Language. 1996. "ErrorBox." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ErrorBox.html.
APA
Wolfram Language. (1996). ErrorBox. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ErrorBox.html
Wolfram Language. (1996). ErrorBox. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ErrorBox.html
BibTeX
@misc{reference.wolfram_2025_errorbox, author="Wolfram Research", title="{ErrorBox}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/ErrorBox.html}", note=[Accessed: 20-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_errorbox, organization={Wolfram Research}, title={ErrorBox}, year={1996}, url={https://reference.wolfram.com/language/ref/ErrorBox.html}, note=[Accessed: 20-March-2025
]}