(function(){catch(FileNotFoundException, function(e) error(e))
    if (!f.exists()){
      throw(FileNotFoundException(f.getPath()+" not found"))}
})()

Example 1: Throwing and catching an exception.

Back to Article