Java Date exception handling try catch
Posted
by user69514
on Stack Overflow
See other posts from Stack Overflow
or by user69514
Published on 2010-03-25T03:42:54Z
Indexed on
2010/03/25
3:53 UTC
Read the original article
Hit count: 392
Is there some sort of exception in Java to catch an invalid Date object? I'm trying to use it in the following method, but I don't know what type of exception to look for. Is it a ParseException.
public boolean setDate(Date date) {
this.date = date;
return true;
}
© Stack Overflow or respective owner