<<< throw testing | Index | Defining your own exceptions >>> |
Code that rethrows an exception
try { // code that throws IOException goes here } catch ( IOException ex ) { System.out.println( "IOException thrown in getFileLength method." ); throw ex; }
<<< throw testing | Index | Defining your own exceptions >>> |