Code example for FileNotFoundException

Methods: getMessage

0
propStream = new FileInputStream(filename);
    } 
    catch (FileNotFoundException e)
    { 
      LOG.error("unable to open properties stream: " + e.getMessage(), e);
      return null; 
    } 
    Properties props = null;
    try 
    { 
      props = new Properties();
      props.load(propStream);
    } 
    catch (IOException e)
    { 
      LOG.error("unable to load properties: " + e.getMessage(), e);
    } 
    finally 
    { 
Contextual code suggestions in your IDE  Get Codota for Java