Class UnsupportedFormatVersionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.marksayson.deletionchecker.format.UnsupportedFormatVersionException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionUnsupportedFormatVersionException(int found, int supported) Creates the exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsupportedFormatVersionException
public UnsupportedFormatVersionException(int found, int supported) Creates the exception.- Parameters:
found- the format version read from the filesupported- 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
-