List of usage examples for org.eclipse.jgit.errors IncorrectObjectTypeException IncorrectObjectTypeException
public IncorrectObjectTypeException(ObjectId id, int type)
From source file:org.eclipse.egit.core.ContainerTreeIterator.java
License:Open Source License
@Override public AbstractTreeIterator createSubtreeIterator(ObjectReader reader) throws IncorrectObjectTypeException, IOException { if (FileMode.TREE.equals(mode)) return new ContainerTreeIterator(this, (IContainer) ((ResourceEntry) current()).rsrc); else//from w ww. j a va2s . c o m throw new IncorrectObjectTypeException(ObjectId.zeroId(), Constants.TYPE_TREE); }