commit | 977072b8ca3e26b97e077f9bd3b2a2ed52a50b02 | [log] [tgz] |
---|---|---|
author | Bruce Zu <bruce.zu@sonymobile.com> | Wed Apr 16 18:34:02 2014 +0800 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Fri Apr 18 07:05:55 2014 +0000 |
tree | 57789bcb6d7a8c92ab465acb717a4e6513536017 | |
parent | 4b77e6034809371fa44d4fca1ff2d51f64040e4e [diff] |
Fix: Wrong exception mapping in ReceiveCommmits When IOException is thrown in insertPatchSet() or insertChange(), e.g. ClosedByInterruptException thrown from AutoCommitWriter.manualFlush(), it will be mapped to OrmException with error message "Error updating database" by ORM_EXCEPTION, this becomes misleading when the administrator analyzes the error log. Fixed. Replaced the ORM_EXCEPTION with INSERT_EXCEPTION. Change-Id: I49a6dfea7e49df72db775989a3a0501f60db76d2