Skip to content

Commit

Permalink
PropertyManager design fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Serg-Maximchuk committed Jan 12, 2016
1 parent 2965cea commit c37eee3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/imcode/util/PropertyManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
Expand Down Expand Up @@ -167,8 +168,8 @@ private static Properties getProperties(File file) throws IOException {
properties = new Properties();
properties.load(in);
CACHE.put(file, properties);
} catch (IOException ex) {
IOException newEx = new IOException("PropertyManager: File not found: " + file.getAbsolutePath());
} catch (FileNotFoundException ex) {
FileNotFoundException newEx = new FileNotFoundException("PropertyManager: File not found: " + file.getAbsolutePath());
newEx.initCause(ex);
throw newEx;
}
Expand Down

0 comments on commit c37eee3

Please sign in to comment.