Coverage Summary for Class: ErrorType (it.polimi.ingsw.gc14)

Class Class, % Method, % Line, %
ErrorType 0% (0/1) 0% (0/4) 0% (0/12)


 package it.polimi.ingsw.gc14;
 
 /** Enumeration of error types that can be returned by server-side operations. */
 public enum ErrorType {
     USER_NOT_FOUND("User not found"),
     USERNAME_ALREADY_USED("Username is already in use"),
     USER_ALREADY_CONNECTED("User is already connected"),
     WRONG_PLAYER_NUMBER("Wrong player number"),
     SERVER_CRASHED("Server crashed"),
     GENERIC_ERROR("Generic error"),
     GAME_ALREADY_STARTED("Game already started"),
     WRONG_ACTION("Wrong action");
     //TODO
     private final String description;
     ErrorType(String description) {
         this.description = description;
     }
     @Override
     public String toString() {
         return description;
     }
 }