Mathematica by default defines a lot of useful messages for signaling common errors, like functions being called with the wrong number of arguments or files not being found. In general, I prefer to use existing, defined messages wherever possible, because it makes it easier for them to be handled via mechanisms like Check
, Quiet
and On
/Off
. However, all my attempts at finding what messages are currently defined have failed; obvious approaches like
DownValues[MessageName]
don't work at all.
Is there a trick I'm missing?
Thanks in advance.