Package org.eclipse.jgit.errors
Class NoMergeBaseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.eclipse.jgit.errors.NoMergeBaseException
-
- All Implemented Interfaces:
Serializable
public class NoMergeBaseException extends IOException
Exception thrown if a merge fails because no merge base could be determined.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NoMergeBaseException.MergeBaseFailureReason
An enum listing the different reason why no merge base could be determined.
-
Constructor Summary
Constructors Constructor Description NoMergeBaseException(NoMergeBaseException.MergeBaseFailureReason reason, String message)
Construct a NoMergeBase exceptionNoMergeBaseException(NoMergeBaseException.MergeBaseFailureReason reason, String message, Throwable why)
Construct a NoMergeBase exception
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NoMergeBaseException.MergeBaseFailureReason
getReason()
Get the reason why no merge base could be found-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NoMergeBaseException
public NoMergeBaseException(NoMergeBaseException.MergeBaseFailureReason reason, String message)
Construct a NoMergeBase exception- Parameters:
reason
- the reason why no merge base could be foundmessage
- a text describing the problem
-
NoMergeBaseException
public NoMergeBaseException(NoMergeBaseException.MergeBaseFailureReason reason, String message, Throwable why)
Construct a NoMergeBase exception- Parameters:
reason
- the reason why no merge base could be foundmessage
- a text describing the problemwhy
- an exception causing this error
-
-
Method Detail
-
getReason
public NoMergeBaseException.MergeBaseFailureReason getReason()
Get the reason why no merge base could be found- Returns:
- the reason why no merge base could be found
-
-