org.jacoco.core.data
Class IncompatibleExecDataVersionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.jacoco.core.data.IncompatibleExecDataVersionException
All Implemented Interfaces:
Serializable

public class IncompatibleExecDataVersionException
extends IOException

Signals that execution data in an incompatible version was tried to read.

See Also:
Serialized Form

Constructor Summary
IncompatibleExecDataVersionException(int actualVersion)
          Creates a new exception to flag version mismatches in execution data.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 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


Copyright © 2009–2023 Mountainminds GmbH & Co. KG. All rights reserved.