I create a class which extends Exception class, I got this warning on Eclipse
The serializable class PhoneAlreadyExists does not declare a static final serialVersionUID field of type long
how to remove it please ?
public class PhoneAlreadyExists extends Exception { public PhoneAlreadyExists() { // TODO Auto-generated constructor stub super(); } PhoneAlreadyExists(String message) { super(message); } }
serialVersionUIDfield to the class.