title: How to throw exception when no case is match in switch
body: <p>I have a function that have switch block I want to throw exception when nothing match how can I do that I wrote this switch </p>
  
  <pre><code>private static int ClimateCal() {
      int climateCal = 0;
      switch (climate.toLowerCase()){
          case "Hot":
              climateCal = 0;
              break;
          case "Cold":
              climateCal = 250;
              break;
          case "Moderate":
              climateCal = 500;
              break;
          default:
              Exception exception;
      }
      return climateCal;
  }
  </code></pre>