Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Get all the messages generated during an evaluation
ResourceFunction["GeneratedMessageList"][expr] evaluates expr and returns the text of any messages generated. |
Evaluate an expression, suppressing any messages but returning them as the result:
In[1]:= |
Out[1]= |
Quiet and Off will prevent messages being returned by GeneratedMessageList:
In[2]:= |
Out[2]= |
In[3]:= |
Out[4]= |
In[5]:= |
Out[6]= |
Message shortens the error parameters:
In[7]:= |
GeneratedMessageList returns parameters in full:
In[8]:= |
Out[8]= |
GeneratedMessageList has the same effect as Quiet. No messages will be returned to the Notebook or console, and nested uses of GeneratedMessageList cannot see errors handled by the deeper GeneratedMessageList:
In[9]:= |
Out[9]= |
In[10]:= |
Out[10]= |
GeneratedMessageList provides similar functionality to $MessageList but returns the full message text not just the type of message:
In[11]:= |
Out[11]= |
In[12]:= |
Out[12]= |
This work is licensed under a Creative Commons Attribution 4.0 International License