- Timestamp:
- 08/23/07 22:15:34 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bbtracker/trunk/src/org/bbtracker/mobile/FileTrackStore.java
r83 r88 34 34 result.addElement(new FileTrackStoreEntry(name, date, fileUrl)); 35 35 } catch (final IOException e) { 36 BBTracker.log("Failed to load info from " + file); 37 BBTracker.log(e); 36 BBTracker.log(this, e, "loading info from " + file); 38 37 } finally { 39 38 if (din != null) { … … 41 40 din.close(); 42 41 } catch (final IOException e) { 43 BBTracker.log( e);42 BBTracker.log(this, e); 44 43 } 45 44 } … … 50 49 return entries; 51 50 } catch (final IOException e) { 52 BBTracker.log( e);51 BBTracker.log(this, e, "loading track list"); 53 52 throw new TrackStoreException(e); 54 53 } finally { … … 58 57 } catch (final IOException e) { 59 58 // can't do anything about it 60 BBTracker.log( e);59 BBTracker.log(this, e); 61 60 } 62 61 } … … 73 72 track.writeToStream(dout); 74 73 } catch (final IOException e) { 75 BBTracker.log( e);74 BBTracker.log(this, e, "saving track"); 76 75 throw new TrackStoreException(e); 77 76 } finally { … … 81 80 } catch (final IOException e) { 82 81 // can't do anything about it 83 BBTracker.log(e);84 82 } 85 83 } … … 89 87 } catch (final IOException e) { 90 88 // can't do anything about it 91 BBTracker.log( e);89 BBTracker.log(this, e); 92 90 } 93 91 } … … 173 171 connection.delete(); 174 172 } catch (final IOException e) { 175 BBTracker.log( e);173 BBTracker.log(this, e, "deleting track"); 176 174 throw new TrackStoreException("Failed to delete track: " + e.getMessage()); 177 175 } … … 185 183 return track; 186 184 } catch (final IOException e) { 187 BBTracker.log( e);185 BBTracker.log(this, e, "loading track"); 188 186 throw new TrackStoreException("Failed to load track: " + e.getMessage()); 189 187 } finally { … … 193 191 } catch (final IOException e) { 194 192 // can't do anything about it 195 BBTracker.log( e);193 BBTracker.log(this, e); 196 194 } 197 195 }
Note: See TracChangeset
for help on using the changeset viewer.