Help says Messages[symbol]
gives all the messages assigned to a particular symbol. These are called message identifiers per help:
Message names always consist of a function name and message identifier separated by a double colon (::).
I wanted to find all possible error/warning message identifiers that say the function DSolve
can throw. Such as DSolve::dvlen
and so on without having to search for them one by one in different help pages. It will also be nice to know which is an error message vs. a warning message if possible.
But Messages[DSolve]
returns empty, because help says Typically, for system commands, messages are only loaded when they are required:
Is there a way, may be using MathematicalFunctionData
? or in other ways to obtain complete list of such messages?
V 12.1 on windows.
Reference
General
so they cannot be listed usingMessages[symbol]
. $\endgroup$searchMessages[]
, I usedFileNameJoin[{$InstallationDirectory, "SystemFiles", "Kernel", "TextResources", "English", "Messages.m"}]
as the primary source. Of course, not all the messages used by Mathematica are in there, for some reason. And yes, Szabolcs is correct that any message associated withGeneral
can be generically associated with other functions: the message you get when evaluating1/0
is attached toPower
, but is actually fromGeneral::infy
. $\endgroup$