I have the following situation:
public class MyHandler extends DefaultHandler {
public class CustomException extends SAXException {
}
}
Eclipse is telling me that SAXException is serializable, and that I should either add a serialVersionUID to CustomException or suppress the warnings.
Questions:
- Why does such exception implement serializable?
- CustomException is empty. Should I add a serialVersionUID or suppress the warnings?
Related problem (less important): why does Eclipse always tell me that a serialVersionUID is missing, even when I add one?