package dk.itu.oop.lecture8; interface Date1 { class DateException extends Exception{ DateException(String errorMessage){ super(errorMessage); } } void setDate(int year, int month, int day) throws DateException; int getYear(); int getMonth(); int getDay(); } interface Date { class DateException extends Exception{ public final String field; // remember the field so we can ask. public DateException(String field){ super("Date is wrong in " + field); this.field = field; } } void setDate(int year, int month, int day) throws DateException; int getYear(); int getMonth(); int getDay(); }