Menu

#2 CoDataLoad constructor exception handling not detailed

open
nobody
None
5
2003-10-20
2003-10-20
Anonymous
No

The contrsuctor for CoDataLoad

Handles IOExceptions by simply saying that Can't
obtain ......STREAM .. witht he source name. It would be
much clearer where the problem was if some of the
detail from the exception was included in the console
message such as e.getMessage() as shown below.

} catch (IOException e) {
if (ibuf == null)
console.print("<
Can't obtain INPUT STREAM for '" + src.getName() + "'!
> " + e.getMessage());
else if (obuf == null)
console.print("<
Can't obtain OUTPUT STREAM for '" + dst.getName()
+ "'! > " + e.getMessage());

Discussion


Log in to post a comment.