Class BadVersionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class BadVersionException
    extends BadFormatException
    Exception thrown when the version of the file is not at least the expected one.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      BadVersionException​(int actualVersion, int expectedVersion)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getActualVersion()  
      int getExpectedVersion()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BadVersionException

        public BadVersionException​(int actualVersion,
                                   int expectedVersion)
        Parameters:
        actualVersion - Actual version of the file.
        expectedVersion - Expected version of the file.
    • Method Detail

      • getActualVersion

        public int getActualVersion()
        Returns:
        Actual version of the file.
      • getExpectedVersion

        public int getExpectedVersion()
        Returns:
        Expected (minimal) version of the file.