Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

cannot find symbol class ParseException

807607Jan 5 2007 — edited Jan 7 2007
I have this in my code how ever


DateFormat formatter = new SimpleDateFormat("ddMMyyyy");
dDateStamp = (Date)formatter.parse(dateStamp);

When I pass in say

dateStamp=safsadssad sa;

I get an error which is fine.

I can not seem to catch this error with try catch

When I use the one below it says it cannot find the symbol

When i use the Exception it still throws and error to jsp page


cannot find symbol

symbol : class ParseException
}catch(ParseException e){
symbol : class ParseException

}catch(ParseException e){

Any One know I csn trap this?

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 4 2007
Added on Jan 5 2007
3 comments
587 views