[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.nebula] Re: CalendarCombo Error Handling

Hi Eric,

I've added code to CVS that will let you listen to exceptions (as they are not exceptions I can throw back to the user in any other way).

To listen to date parse exceptions you can now do:


combo.addDateParseExceptionListener(new IDateParseExceptionListener() {
public void parseExceptionThrown(CalendarDateParseException dateParseException) {
System.out.println("Date parse exception was thrown: " + dateParseException.getMessage());
} });



If there is any listeners the normal stacktrace will not be printed out, if there aren't any, then it will be printed out.

The CalendarDateParseException class now also contains a method where you can get the error type if you so wish, check the javadoc.

New code is in CVS, I will update nightly builds later.

Let me know if you spot any issues with any of that.

Regards,
Emil