This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
java:exceptions_intro [2015/03/03 07:55] gthanos [Χειρισμός της εξαίρεσης σε υψηλότερο επίπεδο] |
java:exceptions_intro [2015/03/03 07:56] gthanos [Χειρισμός της εξαίρεσης σε υψηλότερο επίπεδο] |
||
---|---|---|---|
Line 297: | Line 297: | ||
catch(IOException ex) { | catch(IOException ex) { | ||
System.out.println("IOException occured while reading from file "+path); | System.out.println("IOException occured while reading from file "+path); | ||
- | System.out.println("Exiting..."); | ||
- | System.exit(1); | ||
} | } | ||
return strDocument.toString(); | return strDocument.toString(); | ||
Line 313: | Line 311: | ||
} | } | ||
catch(IOException ex) { | catch(IOException ex) { | ||
- | System.out.println("IOException occured while reading from file "+path); | + | System.out.println("IOException occured while closing file "+path); |
- | System.out.println("Exiting..."); | + | |
- | System.exit(1); | + | |
} | } | ||
} | } |