about java exceptions
i am using eclipse to write java servlets...it warns me sometimes to put try catch on some blocks of code...these exceptions are the defined exceptions in java library like;
NullPointerException,SQLException,DataFormatException etc...
but for example when i write a code like below it has mkdir() method...If the creation of folder fails how am i going to know that it is failed? eclipse dont warn me to cover it between try&catch and there is no defined exception about it...
File myfile=new File("path/newfolder");
if(!myfile.exits())
myfile.mkdir();
how am i going to catch and understand if folder creation fails?
thank you
Message was edited by:
netsonicc

