Class IncompatibleExecDataVersionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.jacoco.core.data.IncompatibleExecDataVersionException
- All Implemented Interfaces:
Serializable
Signals that execution data in an incompatible version was tried to read.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionIncompatibleExecDataVersionException(int actualVersion) Creates a new exception to flag version mismatches in execution data. -
Method Summary
Modifier and TypeMethodDescriptionintGets the actual version found in the execution data.intGets the version expected in the execution data which can be read by this version of JaCoCo.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
actualVersion
private final int actualVersion
-
-
Constructor Details
-
IncompatibleExecDataVersionException
public IncompatibleExecDataVersionException(int actualVersion) Creates a new exception to flag version mismatches in execution data.- Parameters:
actualVersion- version found in the exec data
-
-
Method Details
-
getExpectedVersion
public int getExpectedVersion()Gets the version expected in the execution data which can be read by this version of JaCoCo.- Returns:
- expected version in execution data
-
getActualVersion
public int getActualVersion()Gets the actual version found in the execution data.- Returns:
- actual version in execution data
-