}
if (protocolVersion.get() > MAX_PROTOCOL_VERSION) {
logger.log(Level.WARNING, String.format("Unknown protocol version: %d! Not parsing Sone.", protocolVersion.get()));
- throw new InvalidProtocolVersion();
+ throw new SoneTooNew();
}
}
}
+ public static class SoneTooNew extends RuntimeException {
+
+ }
+
public static class MalformedXml extends RuntimeException {
}