title: Catch Mathematica warnings/errors without displaying them
body: <p>I have a problem involving NDSolve in Mathematica, which I run multiple times with different values of the parameters. For some of these values, the solution results in singularities and NDSolve warns with NDSolve::ndsz or other related warnings. </p>
  
  <p>I would simply like to catch these warnings, suppress their display, and just keep track of the fact that a problem occurred for these particular values of the parameters. I thought of the following options (neither of which really do the trick):</p>
  
  <ol>
  <li>I know I can determine whether a command has resulted in a warning or error by using <code>Check</code>. However, that will still display the warning. If I turn it off with <code>Off</code> the <code>Check</code> fails to report the warning too.</li>
  <li>It is possible to stop NDSolve using the <code>EventLocator</code> method, so I could check for very large values of the function or its derivatives and stop evaluation in that case. However, in practice, this still produces warnings from time to time, presumably because the step size can sometimes be so large that the NDSolve warning triggers before my <code>Event</code> has taken place.</li>
  </ol>
  
  <p>Any other suggestions?</p>