Class RevisionConflictException

  • All Implemented Interfaces:
    Serializable

    public class RevisionConflictException
    extends Exception
    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:
    Serialized Form
    • 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.