Package com.atlassian.bitbucket.scm
Class MergeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.atlassian.bitbucket.ServiceException
com.atlassian.bitbucket.scm.ScmException
com.atlassian.bitbucket.scm.MergeException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionMergeException
(KeyedMessage message, String scmId, Repository repository, String from, String to, boolean conflicted) MergeException
(KeyedMessage message, Throwable cause, String scmId, Repository repository, String from, String to, boolean conflicted) -
Method Summary
Methods inherited from class com.atlassian.bitbucket.scm.ScmException
getScmId
Methods inherited from class com.atlassian.bitbucket.ServiceException
getKeyedMessage, getLocalizedMessage, getMessageKey
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MergeException
public MergeException(@Nonnull KeyedMessage message, @Nonnull String scmId, @Nonnull Repository repository, @Nonnull String from, @Nonnull String to, boolean conflicted) - Parameters:
message
- messagescmId
- ID of the scmrepository
- repositoryfrom
- from hashto
- to hashconflicted
- true if conflicted- Since:
- 5.0
-
MergeException
public MergeException(@Nonnull KeyedMessage message, @Nullable Throwable cause, @Nonnull String scmId, @Nonnull Repository repository, @Nonnull String from, @Nonnull String to, boolean conflicted) - Parameters:
message
- messagecause
- cause or nullscmId
- ID of the scmrepository
- repositoryfrom
- from hashto
- to hashconflicted
- true if conflicted- Since:
- 5.0
-
-
Method Details
-
getFrom
-
getRepository
-
getTo
-
isConflicted
public boolean isConflicted()- Returns:
true
if the merge failed because the resulting merge had conflicts- Since:
- 5.0
-