Message
Details

- Message generates output on the channel $Messages.
- You can switch off a message using Off[symbol::tag]. You can switch on a message using On[symbol::tag].
- Between any two successive input lines, the Wolfram Language prints a message with a particular name at most three times. On the last occurrence, it prints the message General::stop.
- Off[General::stop] makes the Wolfram Language not stop repeating messages.
- During the evaluation of a particular input line, names of messages associated with that input line are appended to the list $MessageList, wrapped with HoldForm. At the end of the evaluation of the n
input line, the value of $MessageList is assigned to MessageList[n].
- Message[mname,e1,e2,…] is printed as StringForm[mess,e1,e2,…] where mess is the value of the message mname. Entries of the form `i` in the string mess are replaced by the corresponding ei.
- Given a message specified as symbol::tag, Message first searches for messages symbol::tag::langi for each of the languages in the list $Language. If it finds none of these, it then searches for the actual message symbol::tag. If it does not find this, it then performs the same search procedure for General::tag. If it still finds no message, it applies any value given for the global variable $NewMessage to symbol and "tag".
- If you specify a message as symbol::tag::lang, then Message will search only for messages with the particular language lang.
See Also
Print CellPrint Echo EchoFunction Write On Off Quiet Check Assert MessageList Beep MessageName Messages Information
Function Repository: LimitedMessage MessageReplace MessageFailure SearchMessages ChannelMessages ResourceFunctionMessage
Tech Notes
Related Guides
Related Workflows
History
Introduced in 1988 (1.0)
Text
Wolfram Research (1988), Message, Wolfram Language function, https://reference.wolfram.com/language/ref/Message.html.
CMS
Wolfram Language. 1988. "Message." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Message.html.
APA
Wolfram Language. (1988). Message. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Message.html
BibTeX
@misc{reference.wolfram_2025_message, author="Wolfram Research", title="{Message}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Message.html}", note=[Accessed: 18-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_message, organization={Wolfram Research}, title={Message}, year={1988}, url={https://reference.wolfram.com/language/ref/Message.html}, note=[Accessed: 18-August-2025]}