title: cannot find symbol error java invalidinputexception
body: <pre><code>public void processString(String input) throws InvalidInputException {//processes the string to check if the characters correct and what method it should go to
      for (char x : input.toCharArray()) {//for loop which checks each char
          switch (x) {
  
          case 'L' :  turnLeft();
                      break;
          case 'R' :  turnRight();
                      break;
          case 'M' :  moveRover();
                      break;
  
          default :   throw new InvalidInputException("Invalid signal");
  
          }
      }
  }
  </code></pre>
  
  <p>I have this code however i am getting a cannot find symbol error
  what am i doing wrong?</p>
  
  <p>I get this error message </p>
  
  <pre><code>    public void processString(String input) throws InvalidInputException {//processes the string to check if the characters correct and what method it should go to
                                                     ^
    symbol:   class InvalidInputException
    location: class marsRover
  marsRover.java:47: error: cannot find symbol
              default :   throw new InvalidInputException("Invalid signal");
                                    ^
    symbol:   class InvalidInputException
    location: class marsRover
  2 errors
  </code></pre>