Mercurial > hg4j
comparison src/org/tmatesoft/hg/repo/HgRepository.java @ 421:fdd7d756dea0 v0.8.5
Allow IOException from DataAccess methods for subclasses with non-trivial implementations, to avoid exception dumps when inapropriate
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 22 Mar 2012 23:09:11 +0100 |
parents | 528b6780a8bd |
children | 9c9c442b5f2e |
comparison
equal
deleted
inserted
replaced
420:6c22bdc0bdfd | 421:fdd7d756dea0 |
---|---|
190 } catch (CancelledException ex) { | 190 } catch (CancelledException ex) { |
191 // IGNORE, can't happen, we did not configure cancellation | 191 // IGNORE, can't happen, we did not configure cancellation |
192 getContext().getLog().debug(getClass(), ex, null); | 192 getContext().getLog().debug(getClass(), ex, null); |
193 } catch (HgException ex) { | 193 } catch (HgException ex) { |
194 getContext().getLog().error(getClass(), ex, null); | 194 getContext().getLog().error(getClass(), ex, null); |
195 // FIXME need to react | 195 // FIXME EXCEPTIONS need to react |
196 } catch (IOException ex) { | 196 } catch (IOException ex) { |
197 // UnsupportedEncodingException can't happen (UTF8) | 197 // UnsupportedEncodingException can't happen (UTF8) |
198 // only from readGlobal. Need to reconsider exceptions thrown from there: | 198 // only from readGlobal. Need to reconsider exceptions thrown from there: |
199 // BufferedReader wraps String and unlikely to throw IOException, perhaps, log is enough? | 199 // BufferedReader wraps String and unlikely to throw IOException, perhaps, log is enough? |
200 getContext().getLog().error(getClass(), ex, null); | 200 getContext().getLog().error(getClass(), ex, null); |