Create a new 'org.eclipse.jgit.api.errors' package to contain exceptions related to using the Git porcelain API. Change-Id: Iac1781bd74fbd520dffac9d347616c3334994470 Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>tags/v0.9.1
Bundle-Localization: plugin | Bundle-Localization: plugin | ||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5 | Bundle-RequiredExecutionEnvironment: J2SE-1.5 | ||||
Import-Package: org.eclipse.jgit.api;version="[0.9.0,0.10.0)", | Import-Package: org.eclipse.jgit.api;version="[0.9.0,0.10.0)", | ||||
org.eclipse.jgit.api.errors;version="[0.9.0,0.10.0)", | |||||
org.eclipse.jgit.awtui;version="[0.9.0,0.10.0)", | org.eclipse.jgit.awtui;version="[0.9.0,0.10.0)", | ||||
org.eclipse.jgit.diff;version="[0.9.0,0.10.0)", | org.eclipse.jgit.diff;version="[0.9.0,0.10.0)", | ||||
org.eclipse.jgit.dircache;version="[0.9.0,0.10.0)", | org.eclipse.jgit.dircache;version="[0.9.0,0.10.0)", |
package org.eclipse.jgit.pgm; | package org.eclipse.jgit.pgm; | ||||
import org.eclipse.jgit.api.CommitCommand; | import org.eclipse.jgit.api.CommitCommand; | ||||
import org.eclipse.jgit.api.ConcurrentRefUpdateException; | |||||
import org.eclipse.jgit.api.Git; | import org.eclipse.jgit.api.Git; | ||||
import org.eclipse.jgit.api.JGitInternalException; | |||||
import org.eclipse.jgit.api.NoHeadException; | |||||
import org.eclipse.jgit.api.NoMessageException; | |||||
import org.eclipse.jgit.api.errors.ConcurrentRefUpdateException; | |||||
import org.eclipse.jgit.api.errors.JGitInternalException; | |||||
import org.eclipse.jgit.api.errors.NoHeadException; | |||||
import org.eclipse.jgit.api.errors.NoMessageException; | |||||
import org.eclipse.jgit.lib.Constants; | import org.eclipse.jgit.lib.Constants; | ||||
import org.eclipse.jgit.lib.Ref; | import org.eclipse.jgit.lib.Ref; | ||||
import org.eclipse.jgit.revwalk.RevCommit; | import org.eclipse.jgit.revwalk.RevCommit; |
junit.textui;version="[3.8.2,4.0.0)", | junit.textui;version="[3.8.2,4.0.0)", | ||||
org.eclipse.jgit;version="[0.9.0,0.10.0)", | org.eclipse.jgit;version="[0.9.0,0.10.0)", | ||||
org.eclipse.jgit.api;version="[0.9.0,0.10.0)", | org.eclipse.jgit.api;version="[0.9.0,0.10.0)", | ||||
org.eclipse.jgit.api.errors;version="[0.9.0,0.10.0)", | |||||
org.eclipse.jgit.awtui;version="[0.9.0,0.10.0)", | org.eclipse.jgit.awtui;version="[0.9.0,0.10.0)", | ||||
org.eclipse.jgit.console;version="[0.9.0,0.10.0)", | org.eclipse.jgit.console;version="[0.9.0,0.10.0)", | ||||
org.eclipse.jgit.diff;version="[0.9.0,0.10.0)", | org.eclipse.jgit.diff;version="[0.9.0,0.10.0)", |
import java.io.IOException; | import java.io.IOException; | ||||
import java.io.PrintWriter; | import java.io.PrintWriter; | ||||
import org.eclipse.jgit.api.errors.NoFilepatternException; | |||||
import org.eclipse.jgit.dircache.DirCache; | import org.eclipse.jgit.dircache.DirCache; | ||||
import org.eclipse.jgit.dircache.DirCacheBuilder; | import org.eclipse.jgit.dircache.DirCacheBuilder; | ||||
import org.eclipse.jgit.dircache.DirCacheEntry; | import org.eclipse.jgit.dircache.DirCacheEntry; |
import java.io.IOException; | import java.io.IOException; | ||||
import java.io.PrintWriter; | import java.io.PrintWriter; | ||||
import org.eclipse.jgit.api.errors.ConcurrentRefUpdateException; | |||||
import org.eclipse.jgit.api.errors.JGitInternalException; | |||||
import org.eclipse.jgit.api.errors.NoFilepatternException; | |||||
import org.eclipse.jgit.api.errors.NoHeadException; | |||||
import org.eclipse.jgit.api.errors.NoMessageException; | |||||
import org.eclipse.jgit.api.errors.WrongRepositoryStateException; | |||||
import org.eclipse.jgit.errors.UnmergedPathException; | import org.eclipse.jgit.errors.UnmergedPathException; | ||||
import org.eclipse.jgit.lib.Constants; | import org.eclipse.jgit.lib.Constants; | ||||
import org.eclipse.jgit.lib.ObjectId; | import org.eclipse.jgit.lib.ObjectId; |
import java.util.Iterator; | import java.util.Iterator; | ||||
import org.eclipse.jgit.api.MergeResult.MergeStatus; | import org.eclipse.jgit.api.MergeResult.MergeStatus; | ||||
import org.eclipse.jgit.api.errors.InvalidMergeHeadsException; | |||||
import org.eclipse.jgit.dircache.DirCacheCheckout; | import org.eclipse.jgit.dircache.DirCacheCheckout; | ||||
import org.eclipse.jgit.lib.Constants; | import org.eclipse.jgit.lib.Constants; | ||||
import org.eclipse.jgit.lib.ObjectId; | import org.eclipse.jgit.lib.ObjectId; |
*/ | */ | ||||
package org.eclipse.jgit.api; | package org.eclipse.jgit.api; | ||||
import org.eclipse.jgit.api.errors.ConcurrentRefUpdateException; | |||||
import org.eclipse.jgit.api.errors.InvalidTagNameException; | |||||
import org.eclipse.jgit.api.errors.JGitInternalException; | |||||
import org.eclipse.jgit.api.errors.NoHeadException; | |||||
import org.eclipse.jgit.api.errors.NoMessageException; | |||||
import org.eclipse.jgit.api.errors.WrongRepositoryStateException; | |||||
import org.eclipse.jgit.errors.UnmergedPathException; | import org.eclipse.jgit.errors.UnmergedPathException; | ||||
import org.eclipse.jgit.lib.RepositoryTestCase; | import org.eclipse.jgit.lib.RepositoryTestCase; | ||||
import org.eclipse.jgit.revwalk.RevCommit; | import org.eclipse.jgit.revwalk.RevCommit; |
Bundle-Vendor: %provider_name | Bundle-Vendor: %provider_name | ||||
Export-Package: org.eclipse.jgit;version="0.9.0", | Export-Package: org.eclipse.jgit;version="0.9.0", | ||||
org.eclipse.jgit.api;version="0.9.0", | org.eclipse.jgit.api;version="0.9.0", | ||||
org.eclipse.jgit.api.errors;version="0.9.0", | |||||
org.eclipse.jgit.diff;version="0.9.0", | org.eclipse.jgit.diff;version="0.9.0", | ||||
org.eclipse.jgit.dircache;version="0.9.0", | org.eclipse.jgit.dircache;version="0.9.0", | ||||
org.eclipse.jgit.events;version="0.9.0", | |||||
org.eclipse.jgit.errors;version="0.9.0", | org.eclipse.jgit.errors;version="0.9.0", | ||||
org.eclipse.jgit.events;version="0.9.0", | |||||
org.eclipse.jgit.fnmatch;version="0.9.0", | org.eclipse.jgit.fnmatch;version="0.9.0", | ||||
org.eclipse.jgit.ignore;version="0.9.0", | org.eclipse.jgit.ignore;version="0.9.0", | ||||
org.eclipse.jgit.lib;version="0.9.0", | org.eclipse.jgit.lib;version="0.9.0", |
import java.util.LinkedList; | import java.util.LinkedList; | ||||
import org.eclipse.jgit.JGitText; | import org.eclipse.jgit.JGitText; | ||||
import org.eclipse.jgit.api.errors.JGitInternalException; | |||||
import org.eclipse.jgit.api.errors.NoFilepatternException; | |||||
import org.eclipse.jgit.dircache.DirCache; | import org.eclipse.jgit.dircache.DirCache; | ||||
import org.eclipse.jgit.dircache.DirCacheBuildIterator; | import org.eclipse.jgit.dircache.DirCacheBuildIterator; | ||||
import org.eclipse.jgit.dircache.DirCacheBuilder; | import org.eclipse.jgit.dircache.DirCacheBuilder; |
import java.util.List; | import java.util.List; | ||||
import org.eclipse.jgit.JGitText; | import org.eclipse.jgit.JGitText; | ||||
import org.eclipse.jgit.api.errors.ConcurrentRefUpdateException; | |||||
import org.eclipse.jgit.api.errors.JGitInternalException; | |||||
import org.eclipse.jgit.api.errors.NoFilepatternException; | |||||
import org.eclipse.jgit.api.errors.NoHeadException; | |||||
import org.eclipse.jgit.api.errors.NoMessageException; | |||||
import org.eclipse.jgit.api.errors.WrongRepositoryStateException; | |||||
import org.eclipse.jgit.dircache.DirCache; | import org.eclipse.jgit.dircache.DirCache; | ||||
import org.eclipse.jgit.errors.UnmergedPathException; | import org.eclipse.jgit.errors.UnmergedPathException; | ||||
import org.eclipse.jgit.lib.CommitBuilder; | import org.eclipse.jgit.lib.CommitBuilder; | ||||
import org.eclipse.jgit.lib.PersonIdent; | import org.eclipse.jgit.lib.PersonIdent; | ||||
import org.eclipse.jgit.lib.Ref; | import org.eclipse.jgit.lib.Ref; | ||||
import org.eclipse.jgit.lib.RefUpdate; | import org.eclipse.jgit.lib.RefUpdate; | ||||
import org.eclipse.jgit.lib.RefUpdate.Result; | |||||
import org.eclipse.jgit.lib.Repository; | import org.eclipse.jgit.lib.Repository; | ||||
import org.eclipse.jgit.lib.RepositoryState; | import org.eclipse.jgit.lib.RepositoryState; | ||||
import org.eclipse.jgit.lib.RefUpdate.Result; | |||||
import org.eclipse.jgit.revwalk.RevCommit; | import org.eclipse.jgit.revwalk.RevCommit; | ||||
import org.eclipse.jgit.revwalk.RevWalk; | import org.eclipse.jgit.revwalk.RevWalk; | ||||
import java.text.MessageFormat; | import java.text.MessageFormat; | ||||
import org.eclipse.jgit.JGitText; | import org.eclipse.jgit.JGitText; | ||||
import org.eclipse.jgit.api.errors.JGitInternalException; | |||||
import org.eclipse.jgit.api.errors.NoHeadException; | |||||
import org.eclipse.jgit.errors.IncorrectObjectTypeException; | import org.eclipse.jgit.errors.IncorrectObjectTypeException; | ||||
import org.eclipse.jgit.errors.MissingObjectException; | import org.eclipse.jgit.errors.MissingObjectException; | ||||
import org.eclipse.jgit.lib.AnyObjectId; | import org.eclipse.jgit.lib.AnyObjectId; |
import org.eclipse.jgit.JGitText; | import org.eclipse.jgit.JGitText; | ||||
import org.eclipse.jgit.api.MergeResult.MergeStatus; | import org.eclipse.jgit.api.MergeResult.MergeStatus; | ||||
import org.eclipse.jgit.api.errors.CheckoutConflictException; | |||||
import org.eclipse.jgit.api.errors.ConcurrentRefUpdateException; | |||||
import org.eclipse.jgit.api.errors.InvalidMergeHeadsException; | |||||
import org.eclipse.jgit.api.errors.JGitInternalException; | |||||
import org.eclipse.jgit.api.errors.NoHeadException; | |||||
import org.eclipse.jgit.api.errors.NoMessageException; | |||||
import org.eclipse.jgit.api.errors.WrongRepositoryStateException; | |||||
import org.eclipse.jgit.dircache.DirCacheCheckout; | import org.eclipse.jgit.dircache.DirCacheCheckout; | ||||
import org.eclipse.jgit.lib.AnyObjectId; | import org.eclipse.jgit.lib.AnyObjectId; | ||||
import org.eclipse.jgit.lib.Constants; | import org.eclipse.jgit.lib.Constants; | ||||
import org.eclipse.jgit.lib.ObjectId; | import org.eclipse.jgit.lib.ObjectId; | ||||
import org.eclipse.jgit.lib.ObjectIdRef; | import org.eclipse.jgit.lib.ObjectIdRef; | ||||
import org.eclipse.jgit.lib.Ref; | import org.eclipse.jgit.lib.Ref; | ||||
import org.eclipse.jgit.lib.RefUpdate; | |||||
import org.eclipse.jgit.lib.Repository; | |||||
import org.eclipse.jgit.lib.Ref.Storage; | import org.eclipse.jgit.lib.Ref.Storage; | ||||
import org.eclipse.jgit.lib.RefUpdate; | |||||
import org.eclipse.jgit.lib.RefUpdate.Result; | import org.eclipse.jgit.lib.RefUpdate.Result; | ||||
import org.eclipse.jgit.lib.Repository; | |||||
import org.eclipse.jgit.merge.MergeStrategy; | import org.eclipse.jgit.merge.MergeStrategy; | ||||
import org.eclipse.jgit.merge.ResolveMerger; | import org.eclipse.jgit.merge.ResolveMerger; | ||||
import org.eclipse.jgit.merge.ResolveMerger.MergeFailureReason; | import org.eclipse.jgit.merge.ResolveMerger.MergeFailureReason; |
import java.text.MessageFormat; | import java.text.MessageFormat; | ||||
import org.eclipse.jgit.JGitText; | import org.eclipse.jgit.JGitText; | ||||
import org.eclipse.jgit.api.errors.ConcurrentRefUpdateException; | |||||
import org.eclipse.jgit.api.errors.InvalidTagNameException; | |||||
import org.eclipse.jgit.api.errors.JGitInternalException; | |||||
import org.eclipse.jgit.api.errors.NoHeadException; | |||||
import org.eclipse.jgit.lib.Constants; | import org.eclipse.jgit.lib.Constants; | ||||
import org.eclipse.jgit.lib.ObjectId; | import org.eclipse.jgit.lib.ObjectId; | ||||
import org.eclipse.jgit.lib.ObjectInserter; | import org.eclipse.jgit.lib.ObjectInserter; |
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||||
* POSSIBILITY OF SUCH DAMAGE. | * POSSIBILITY OF SUCH DAMAGE. | ||||
*/ | */ | ||||
package org.eclipse.jgit.api; | |||||
package org.eclipse.jgit.api.errors; | |||||
import java.util.LinkedList; | import java.util.LinkedList; | ||||
import java.util.List; | import java.util.List; |
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||||
* POSSIBILITY OF SUCH DAMAGE. | * POSSIBILITY OF SUCH DAMAGE. | ||||
*/ | */ | ||||
package org.eclipse.jgit.api; | |||||
package org.eclipse.jgit.api.errors; | |||||
import java.text.MessageFormat; | import java.text.MessageFormat; | ||||
private RefUpdate.Result rc; | private RefUpdate.Result rc; | ||||
private Ref ref; | private Ref ref; | ||||
ConcurrentRefUpdateException(String message, Ref ref, | |||||
/** | |||||
* @param message | |||||
* @param ref | |||||
* @param rc | |||||
* @param cause | |||||
*/ | |||||
public ConcurrentRefUpdateException(String message, Ref ref, | |||||
RefUpdate.Result rc, Throwable cause) { | RefUpdate.Result rc, Throwable cause) { | ||||
super((rc == null) ? message : message + ". " | super((rc == null) ? message : message + ". " | ||||
+ MessageFormat.format(JGitText.get().refUpdateReturnCodeWas, rc), cause); | + MessageFormat.format(JGitText.get().refUpdateReturnCodeWas, rc), cause); | ||||
this.ref = ref; | this.ref = ref; | ||||
} | } | ||||
ConcurrentRefUpdateException(String message, Ref ref, | |||||
/** | |||||
* @param message | |||||
* @param ref | |||||
* @param rc | |||||
*/ | |||||
public ConcurrentRefUpdateException(String message, Ref ref, | |||||
RefUpdate.Result rc) { | RefUpdate.Result rc) { | ||||
super((rc == null) ? message : message + ". " | super((rc == null) ? message : message + ". " | ||||
+ MessageFormat.format(JGitText.get().refUpdateReturnCodeWas, rc)); | + MessageFormat.format(JGitText.get().refUpdateReturnCodeWas, rc)); |
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||||
* POSSIBILITY OF SUCH DAMAGE. | * POSSIBILITY OF SUCH DAMAGE. | ||||
*/ | */ | ||||
package org.eclipse.jgit.api; | |||||
package org.eclipse.jgit.api.errors; | |||||
/** | /** | ||||
* Superclass of all exceptions thrown by the API classes in | * Superclass of all exceptions thrown by the API classes in |
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||||
* POSSIBILITY OF SUCH DAMAGE. | * POSSIBILITY OF SUCH DAMAGE. | ||||
*/ | */ | ||||
package org.eclipse.jgit.api; | |||||
package org.eclipse.jgit.api.errors; | |||||
/** | /** | ||||
public class InvalidMergeHeadsException extends GitAPIException { | public class InvalidMergeHeadsException extends GitAPIException { | ||||
private static final long serialVersionUID = 1L; | private static final long serialVersionUID = 1L; | ||||
InvalidMergeHeadsException(String msg) { | |||||
/** | |||||
* @param msg | |||||
*/ | |||||
public InvalidMergeHeadsException(String msg) { | |||||
super(msg); | super(msg); | ||||
} | } | ||||
} | } |
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||||
* POSSIBILITY OF SUCH DAMAGE. | * POSSIBILITY OF SUCH DAMAGE. | ||||
*/ | */ | ||||
package org.eclipse.jgit.api; | |||||
package org.eclipse.jgit.api.errors; | |||||
/** | /** | ||||
* Exception thrown when a tag command was called with an invalid tag name (or | * Exception thrown when a tag command was called with an invalid tag name (or | ||||
public class InvalidTagNameException extends GitAPIException { | public class InvalidTagNameException extends GitAPIException { | ||||
private static final long serialVersionUID = 1L; | private static final long serialVersionUID = 1L; | ||||
InvalidTagNameException(String msg) { | |||||
/** | |||||
* @param msg | |||||
*/ | |||||
public InvalidTagNameException(String msg) { | |||||
super(msg); | super(msg); | ||||
} | } | ||||
} | } |
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||||
* POSSIBILITY OF SUCH DAMAGE. | * POSSIBILITY OF SUCH DAMAGE. | ||||
*/ | */ | ||||
package org.eclipse.jgit.api; | |||||
package org.eclipse.jgit.api.errors; | |||||
/** | /** | ||||
* Exception thrown when during command execution a low-level exception from the | * Exception thrown when during command execution a low-level exception from the | ||||
public class JGitInternalException extends RuntimeException { | public class JGitInternalException extends RuntimeException { | ||||
private static final long serialVersionUID = 1L; | private static final long serialVersionUID = 1L; | ||||
JGitInternalException(String message, Throwable cause) { | |||||
/** | |||||
* @param message | |||||
* @param cause | |||||
*/ | |||||
public JGitInternalException(String message, Throwable cause) { | |||||
super(message, cause); | super(message, cause); | ||||
} | } | ||||
JGitInternalException(String message) { | |||||
/** | |||||
* @param message | |||||
*/ | |||||
public JGitInternalException(String message) { | |||||
super(message); | super(message); | ||||
} | } | ||||
} | } |
* POSSIBILITY OF SUCH DAMAGE. | * POSSIBILITY OF SUCH DAMAGE. | ||||
*/ | */ | ||||
package org.eclipse.jgit.api; | |||||
package org.eclipse.jgit.api.errors; | |||||
/** | /** | ||||
* Exception thrown when the options given to a command don't include a | * Exception thrown when the options given to a command don't include a | ||||
private static final long serialVersionUID = 1L; | private static final long serialVersionUID = 1L; | ||||
NoFilepatternException(String message, Throwable cause) { | |||||
/** | |||||
* @param message | |||||
* @param cause | |||||
*/ | |||||
public NoFilepatternException(String message, Throwable cause) { | |||||
super(message, cause); | super(message, cause); | ||||
} | } | ||||
NoFilepatternException(String message) { | |||||
/** | |||||
* @param message | |||||
*/ | |||||
public NoFilepatternException(String message) { | |||||
super(message); | super(message); | ||||
} | } | ||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||||
* POSSIBILITY OF SUCH DAMAGE. | * POSSIBILITY OF SUCH DAMAGE. | ||||
*/ | */ | ||||
package org.eclipse.jgit.api; | |||||
package org.eclipse.jgit.api.errors; | |||||
/** | /** | ||||
* Exception thrown when a command expected the {@code HEAD} reference to exist | * Exception thrown when a command expected the {@code HEAD} reference to exist | ||||
public class NoHeadException extends GitAPIException { | public class NoHeadException extends GitAPIException { | ||||
private static final long serialVersionUID = 1L; | private static final long serialVersionUID = 1L; | ||||
NoHeadException(String message, Throwable cause) { | |||||
/** | |||||
* @param message | |||||
* @param cause | |||||
*/ | |||||
public NoHeadException(String message, Throwable cause) { | |||||
super(message, cause); | super(message, cause); | ||||
} | } | ||||
NoHeadException(String message) { | |||||
/** | |||||
* @param message | |||||
*/ | |||||
public NoHeadException(String message) { | |||||
super(message); | super(message); | ||||
} | } | ||||
} | } |
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||||
* POSSIBILITY OF SUCH DAMAGE. | * POSSIBILITY OF SUCH DAMAGE. | ||||
*/ | */ | ||||
package org.eclipse.jgit.api; | |||||
package org.eclipse.jgit.api.errors; | |||||
/** | /** | ||||
* Exception thrown when the options given to a command don't include a | * Exception thrown when the options given to a command don't include a | ||||
public class NoMessageException extends GitAPIException { | public class NoMessageException extends GitAPIException { | ||||
private static final long serialVersionUID = 1L; | private static final long serialVersionUID = 1L; | ||||
NoMessageException(String message, Throwable cause) { | |||||
/** | |||||
* @param message | |||||
* @param cause | |||||
*/ | |||||
public NoMessageException(String message, Throwable cause) { | |||||
super(message, cause); | super(message, cause); | ||||
} | } | ||||
NoMessageException(String message) { | |||||
/** | |||||
* @param message | |||||
*/ | |||||
public NoMessageException(String message) { | |||||
super(message); | super(message); | ||||
} | } | ||||
} | } |
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||||
* POSSIBILITY OF SUCH DAMAGE. | * POSSIBILITY OF SUCH DAMAGE. | ||||
*/ | */ | ||||
package org.eclipse.jgit.api; | |||||
package org.eclipse.jgit.api.errors; | |||||
/** | /** | ||||
* Exception thrown when the state of the repository doesn't allow the execution | * Exception thrown when the state of the repository doesn't allow the execution | ||||
public class WrongRepositoryStateException extends GitAPIException { | public class WrongRepositoryStateException extends GitAPIException { | ||||
private static final long serialVersionUID = 1L; | private static final long serialVersionUID = 1L; | ||||
WrongRepositoryStateException(String message, Throwable cause) { | |||||
/** | |||||
* @param message | |||||
* @param cause | |||||
*/ | |||||
public WrongRepositoryStateException(String message, Throwable cause) { | |||||
super(message, cause); | super(message, cause); | ||||
} | } | ||||
WrongRepositoryStateException(String message) { | |||||
/** | |||||
* @param message | |||||
*/ | |||||
public WrongRepositoryStateException(String message) { | |||||
super(message); | super(message); | ||||
} | } | ||||
} | } |