title: How to suppress the "match may not be exhaustive" warning in Scala?
body: <p>I am currently implementing a small internally used utility that imports data from a set of Excel files to our application. Based on the type of the Excel cell, I decide how to treat the data. The Excel file can contain only string, numeric and Boolean cells, if any other cell is encountered, the program is free to crash at run-time. </p>
  
  <p>Now Scala is correctly warning me that the match on the cell type is not exhaustive, the cells can have the type of blank, formula, error...</p>
  
  <p>Is there a way how to suppress the warning, except the obvious one?:</p>
  
  <pre><code>t match {
    case STRING =&gt; ???
    case NUMERIC =&gt; ???
    case BOOLEAN =&gt; ???
    case _ =&gt; throw new MatchError() // redundant, just to suppress the compile time warning
  }
  </code></pre>