Advertisement
CSnathan

WrongTeamException.java

Oct 2nd, 2018
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. //*******************************************************
  2. // Nathan Schnitzer & Ryan
  3. // WrongTeamException
  4. // 9/28/18
  5. // Throws if piece of other team is selected
  6. //*******************************************************
  7.  
  8. public class WrongTeamException extends Exception
  9. {
  10.     //General Case
  11.     public WrongTeamException()
  12.     {
  13.         super();
  14.     }
  15.    
  16.     //Specific Case
  17.     public WrongTeamException(String message)
  18.     {
  19.         super(message);
  20.     }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement