Class RevisionConflictException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.aristaflow.adept2.model.activitymodel.RevisionConflictException
-
- All Implemented Interfaces:
Serializable
public class RevisionConflictException extends Exception
ARevisionConflictException
indicates that a development branch is based on an version that is too old with respect to the latest revision. This occurs when having several development branches with concurrent modifications and one of them is released.- Author:
- Ulrich Kreher
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RevisionConflictException(Revision baseRevision, Revision latestRevision)
Creates a new exception indicating that a branch is based on an old revision but not on the latest revision.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Revision
getBaseRevision()
Gets the base revision of the branch that caused this conflict, that is, the revision that is too old now.Revision
getLatestRevision()
Gets the latest revision that is needed for a version that is to be released.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RevisionConflictException
public RevisionConflictException(Revision baseRevision, Revision latestRevision)
Creates a new exception indicating that a branch is based on an old revision but not on the latest revision. This occurs in case another development branch has been released.- Parameters:
baseRevision
- The base revision of the branch that caused this conflict.latestRevision
- The latest revision the branch should have to be released.
-
-
Method Detail
-
getBaseRevision
public Revision getBaseRevision()
Gets the base revision of the branch that caused this conflict, that is, the revision that is too old now.- Returns:
- The base revision of the branch that caused this conflict.
-
getLatestRevision
public Revision getLatestRevision()
Gets the latest revision that is needed for a version that is to be released.- Returns:
- The latest revision that the branch should have to be released.
-
-