Code example for IOException

Methods: getMessage

0
      props = new Properties();
      props.load(propStream);
    } 
    catch (IOException e)
    { 
      LOG.error("unable to load properties: " + e.getMessage(), e);
    } 
    finally 
    { 
      if (null != propStream)
      { 
        try 
        { 
          propStream.close();
        } 
        catch (Exception e)
        { 
          LOG.error("unable to close property file stream:" + e.getMessage(), e);
        } 
      } 
    }