Class RevisionConflictException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.aristaflow.adept2.model.activitymodel.RevisionConflictException
- All Implemented Interfaces:
Serializable
A
RevisionConflictException 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:
-
Constructor Summary
ConstructorsConstructorDescriptionRevisionConflictException(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
Modifier and TypeMethodDescriptionGets the base revision of the branch that caused this conflict, that is, the revision that is too old now.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 Details
-
RevisionConflictException
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 Details
-
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
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.
-