The only exception which is thrown by the methods in the FileFactory class is the java.io.IOException. Does FileFactory include a "message" which explains the reason for the IOException? E.g.
try {
infile=FileFactory.newBufferedInputStream("//DD:INPUT");
} catch (java.io.IOException e) {
System.out.println(e.getMessage());
throw new RuntimeException(e);
}
I ask because the reasons could be many. Such as a S213-04 (dataset not on volume), S913 (security violation), and likely others. Is this message architected so that I could perhaps render a more user-friendly message or programmed response?
FileFactory question on IOException reason
-
- Posts: 39
- Joined: Sat Nov 21, 2009 2:59 pm
-
- Posts: 39
- Joined: Sat Nov 21, 2009 2:59 pm
Many thanks!
That gets me what I need to know.