MessageList

MessageList[n]

is a global object assigned to be a list of the names of messages generated during the processing of the n^(th) input line.

Details

  • Only messages that are actually output are included in the list MessageList[n].
  • The message names in the list are wrapped with HoldForm.
  • MessageList[n] includes messages generated both by builtin functions and by explicit invocations of Message.

Examples

Basic Examples  (1)

Get any messages that were generated by the previous output:

There were no messages produced in the previous command:

Now the command that gave the message is the third previous command:

Get a list of all the messages that were generated in a session:

Wolfram Research (1991), MessageList, Wolfram Language function, https://reference.wolfram.com/language/ref/MessageList.html.

Text

Wolfram Research (1991), MessageList, Wolfram Language function, https://reference.wolfram.com/language/ref/MessageList.html.

CMS

Wolfram Language. 1991. "MessageList." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MessageList.html.

APA

Wolfram Language. (1991). MessageList. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MessageList.html

BibTeX

@misc{reference.wolfram_2024_messagelist, author="Wolfram Research", title="{MessageList}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/MessageList.html}", note=[Accessed: 30-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_messagelist, organization={Wolfram Research}, title={MessageList}, year={1991}, url={https://reference.wolfram.com/language/ref/MessageList.html}, note=[Accessed: 30-December-2024 ]}