Class AbstractVersionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opendaylight.controller.cluster.access.AbstractVersionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FutureVersionException
,PastVersionException
Abstract base exception used for reporting version mismatches from
ABIVersion
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfinal @NonNull ABIVersion
Return the closest version supported by this codebase.final int
version()
Return the numeric version which has caused this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
version
public final int version()Return the numeric version which has caused this exception.- Returns:
- Numeric version
-
closestVersion
Return the closest version supported by this codebase.- Returns:
- Closest supported
ABIVersion
-