title: how can I catch a non-fatal error in processing
body: <p>i have this piece of code im trying to run:</p>
  <pre><code>float curX;
  curX = map(millis(), timeStart, timeEnd, fromX, toX);
  // the code itself works fine so variables and stuff aren't really important
  </code></pre>
  <p>and because of the circumstances of the program, sometimes it will give errors like this: <code>map(992, 1000, 1000, 50, 50) called, which returns NaN (not a number)</code></p>
  <p>this doesn't stop the program but i wanted to know if there was a way to detect if this will happen and such, not run this code so it doesn't fill up the console. maybe using a <code>try {} catch() {}</code> statement or something?</p>