Class UnsupportedManifestVersionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.marksayson.deletionchecker.manifest.UnsupportedManifestVersionException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionUnsupportedManifestVersionException(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
-
UnsupportedManifestVersionException
public UnsupportedManifestVersionException(int found, int supported) Creates the exception.- Parameters:
found- theformatVersionread from the manifestsupported- theformatVersionthis build understands
-
-
Method Details
-
found
public int found()Returns theformatVersionread from the manifest.- Returns:
- the manifest's format version
-
supported
public int supported()Returns theformatVersionthis build understands.- Returns:
- the supported format version
-