java:exceptions_intro

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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);+
         }         }
       }       }
java/exceptions_intro.txt · Last modified: 2019/04/20 05:02 by gthanos