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:56] gthanos [Πυροδότηση μιας εξαίρεσης] |
java:exceptions_intro [2015/03/03 07:57] gthanos [Δημιουργία ενός νέου τύπου εξαίρεσης και πυροδότηση εξαίρεσης] |
||
---|---|---|---|
Line 373: | Line 373: | ||
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); | ||
} | } | ||
if( strDocument.toString().isEmpty() ) { | if( strDocument.toString().isEmpty() ) { | ||
Line 390: | Line 388: | ||
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); | ||
} | } | ||
} | } |