Code example for FileNotFoundException

0
    } 
    else { 
      url = new URL(location); 
    } 
    if (url == null) {
      throw new FileNotFoundException(location);
    } 
    return url;
  } 
   
} 
Contextual code suggestions in your IDE  Get Codota for Java