Package org.eclipse.jgit.api.errors
Class WrongRepositoryStateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.jgit.api.errors.GitAPIException
-
- org.eclipse.jgit.api.errors.WrongRepositoryStateException
-
- All Implemented Interfaces:
Serializable
public class WrongRepositoryStateException extends GitAPIException
Exception thrown when the state of the repository doesn't allow the execution of a certain command. E.g. when a CommitCommand should be executed on a repository with unresolved conflicts this exception will be thrown.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WrongRepositoryStateException(String message)
Constructor for WrongRepositoryStateException.WrongRepositoryStateException(String message, Throwable cause)
Constructor for WrongRepositoryStateException.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
WrongRepositoryStateException
public WrongRepositoryStateException(String message, Throwable cause)
Constructor for WrongRepositoryStateException.- Parameters:
message
- error messagecause
- aThrowable
-
WrongRepositoryStateException
public WrongRepositoryStateException(String message)
Constructor for WrongRepositoryStateException.- Parameters:
message
- error message
-
-