So here is what I have. I'm working on the super beginnings of a text game, and I want user to move around until he quits. I'm trying to have it throw an exception to tell him his input was not valid, and continue with the loop. Not sure how to do this. Any help appreciated!

```
import java.util.Scanner;

public class Interface {

public static void main(String[] args) {

    String direction;
    System.out.println ("Welcome to the Land of Poonigeddon!");
    System.out.println ("To move, type one of these four letters: N,S,E,W. or type quit to quit.");
    System.out.println ("This will move you in the corresponding cardinal direction.");
    Scanner input = new Scanner (System.in);
    System.out.println ("");
    System.out.println ("Now, which way will you go?");
    while (true) {
        direction = input.nextLine();

           if (direction.equalsIgnoreCase ("e")) {
               System.out.println ("You have moved to the east.");
           }
           if (direction.equalsIgnoreCase("w")) {
               System.out.println("You have moved to the west.");
           }
           if (direction.equalsIgnoreCase("n")) {
               System.out.println ("You have moved to the north.");
           }
           if (direction.equalsIgnoreCase("s")) {
               System.out.print("You have moved to the south.");
           }
           if (direction.equalsIgnoreCase("quit")) {
               break;
           }
           else //throw new exception? i had illegalargumentexception but     it kicks out
               // of the loop after it catches input that isnt     n,w,e,s,quit("Not a valid movement key, please try again.");

    }
}

```

}