comparison src/luan/modules/IoLuan.java @ 1349:0cceff521abb

IO error handling
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 27 Feb 2019 12:30:46 -0700
parents e0cf0d108a77
children 836e00bf7ce2
comparison
equal deleted inserted replaced
1348:af478a1bd23d 1349:0cceff521abb
191 return true; 191 return true;
192 } catch(FileNotFoundException e) { 192 } catch(FileNotFoundException e) {
193 return false; 193 return false;
194 } catch(UnknownHostException e) { 194 } catch(UnknownHostException e) {
195 return false; 195 return false;
196 } catch(LuanException e) {
197 if( e.getCause() instanceof FileNotFoundException )
198 return false;
199 throw e;
196 } 200 }
197 } 201 }
198 202
199 public long checksum() throws IOException, LuanException { 203 public long checksum() throws IOException, LuanException {
200 long cs = 0; 204 long cs = 0;