Class UnsupportedManifestVersionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.marksayson.deletionchecker.manifest.UnsupportedManifestVersionException
All Implemented Interfaces:
Serializable

public class UnsupportedManifestVersionException extends RuntimeException
Thrown when the manifest's formatVersion is not the JSON schema version this build understands — the artifact is too old or too new for this runtime. Distinct from an invalid manifest (InvalidManifestException); the fail-fast behaviour is the same but the fix differs.
See Also:
  • Constructor Details

    • UnsupportedManifestVersionException

      public UnsupportedManifestVersionException(int found, int supported)
      Creates the exception.
      Parameters:
      found - the formatVersion read from the manifest
      supported - the formatVersion this build understands
  • Method Details

    • found

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

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