Eclipse should suggest you to add a "throws" clause. You should accept it.
The common mistake is to catch those errors in your code (this is the main reason that checked exceptions do more harm than good).
Markus is right.
I guess that the datetime variable cannot be checked for all kinds of user mistakes, for example an invalid date like 30/02/2012 , so it tells you to add a precaution for such cases.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.