Hitting this exception is not providing sufficent detail as to
what the proposed version is. Add that information.
Change-Id: I44662e904774b636b351beb4c6b1f218e84f8ada
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
@Override
public final Object toSerializable() {
- if (getVersion() < DataStoreVersions.BORON_VERSION) {
- throw new UnsupportedOperationException("Versions prior to " + DataStoreVersions.BORON_VERSION
- + " are not supported");
+ final short ver = getVersion();
+ if (ver < DataStoreVersions.BORON_VERSION) {
+ throw new UnsupportedOperationException("Version " + ver
+ + " is older than the oldest version supported version " + DataStoreVersions.BORON_VERSION);
}
return this;