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