Package org.jacoco.core.data
Class IncompatibleExecDataVersionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.jacoco.core.data.IncompatibleExecDataVersionException
-
- All Implemented Interfaces:
java.io.Serializable
public class IncompatibleExecDataVersionException extends java.io.IOException
Signals that execution data in an incompatible version was tried to read.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
actualVersion
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description IncompatibleExecDataVersionException(int actualVersion)
Creates a new exception to flag version mismatches in execution data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getActualVersion()
Gets the actual version found in the execution data.int
getExpectedVersion()
Gets the version expected in the execution data which can be read by this version of JaCoCo.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
actualVersion
private final int actualVersion
-
-
Method Detail
-
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
-
-