...
Code Block | ||
---|---|---|
| ||
try { //... } catch(IOException ioe) { ioe.printStacktrace(); } |
Note that even though the application reacts to the exception by printing out a stack trace, it proceeds as if the exception was not thrown, that is, the future long term behavior of the application does not change based on the throwing of the exception. Given that the resulting IOException
indicates that an operation attempted by the application failed, it is unlikely that the application will be able to operate successfully by assuming that the attempted operation succeeded.
...