package gameOfLife.packageTracker.exceptions;

@SuppressWarnings("serial")
public class InvalidUserNameException extends Exception
{

   public InvalidUserNameException(InvalidUserNameType type)
   {
      super("Invalid User Name: " + type);
   }
   
   public static enum InvalidUserNameType
   {
      DUPLICATE , INVALID;
   }
}

@@ -40,16 +40,66 @@
 tions;%0A%0A
+/**%0A * The Class InvalidUserNameException is %0A */%0A
 @Suppres
@@ -184,187 +184,719 @@
 %0A   
-public InvalidUserNameException(InvalidUserNameType type)%0A   %7B%0A      super(%22Invalid User Name: %22 + type);%0A   %7D%0A   %0A   public static enum InvalidUserNameType%0A   %7B%0A      DUPLICATE ,
+/**%0A    * Instantiates a new invalid user name exception that throws an exception%0A    * depending on the error the user made with the user name.%0A    *%0A    * @param type the type of error the user made%0A    */%0A   public InvalidUserNameException(InvalidUserNameType type)%0A   %7B%0A      super(%22Invalid User Name: %22 + type);%0A   %7D%0A   %0A   /**%0A    * The Enum InvalidUserNameType contains the types of errors the user%0A    * can make when entering the user name.%0A    */%0A   public static enum InvalidUserNameType%0A   %7B%0A      %0A      /** There is already a user name inside the database that matches the entered user name. */%0A      DUPLICATE , %0A      /** The user name breaks the rules that are set about the user name. */%0A     
  INV

Add JavaDoc comments