]> source.dussan.org Git - jgit.git/commit
Improve LargeObjectException reporting 60/1460/1
authorShawn O. Pearce <spearce@spearce.org>
Mon, 30 Aug 2010 18:53:25 +0000 (11:53 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 30 Aug 2010 18:53:25 +0000 (11:53 -0700)
commite6bd689d2c48efb4e6662ffca2fbdbc7570d2db1
tree0b19b3c1a845a0626c61ba1c7954cfd2f8844834
parenta3945d1bc856322becdc4d1ec8df9013bfef3175
Improve LargeObjectException reporting

Use 3 different types of LargeObjectException for the 3 major ways
that we can fail to load an object.  For each of these use a unique
string translation which describes the root cause better than just
the ObjectId.name() does.

Change-Id: I810c98d5691b74af9fc6cbd46fc9879e35a7bdca
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/PackFileTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/UnpackedObjectTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/errors/LargeObjectException.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectLoader.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LargePackedDeltaObject.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LargePackedWholeObject.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/UnpackedObject.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/DeltaWindow.java