Class AbstractVersionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opendaylight.controller.cluster.datastore.persisted.AbstractVersionException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FutureVersionException, PastVersionException

@NonNullByDefault public abstract sealed class AbstractVersionException extends Exception permits FutureVersionException, PastVersionException
Abstract base exception used for reporting version mismatches from PayloadVersion.
See Also:
  • Method Details

    • getVersion

      public final int getVersion()
      Returns the numeric version which has caused this exception.
      Returns:
      the numeric version which has caused this exception
    • getClosestVersion

      public final PayloadVersion getClosestVersion()
      Returns the closest version supported by this codebase.
      Returns:
      the closest version supported by this codebase