Wednesday, August 11, 2010

Custom Exception

outFile = new File(path);
if(outFile.exists())
throw new Exception("File "+path+" already exists.");