Class UnsupportedFormatVersionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.marksayson.deletionchecker.format.UnsupportedFormatVersionException
All Implemented Interfaces:
Serializable

public class UnsupportedFormatVersionException extends RuntimeException
Thrown when a dataset file's format version is not the one this build understands — the artifact is too old or too new for this runtime. This is distinct from a corrupted file (CorruptDatasetException); the fail-fast behaviour is the same but the cause and the fix differ.
See Also:
  • Constructor Details

    • UnsupportedFormatVersionException

      public UnsupportedFormatVersionException(int found, int supported)
      Creates the exception.
      Parameters:
      found - the format version read from the file
      supported - the format version this build understands
  • Method Details

    • found

      public int found()
      Returns the format version read from the file.
      Returns:
      the file's format version
    • supported

      public int supported()
      Returns the format version this build understands.
      Returns:
      the supported format version