- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.eclipse.jgit.errors.PackMismatchException
-
- All Implemented Interfaces:
Serializable
public class PackMismatchException extends IOException
Thrown when a Pack no longer matches the PackIndex.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PackMismatchException(String why)Construct a pack modification error.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisPermanent()Check if this is a permanent problemvoidsetPermanent(boolean permanent)Set the type of the exceptionStringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
PackMismatchException
public PackMismatchException(String why)
Construct a pack modification error.- Parameters:
why- description of the type of error.
-
-
Method Detail
-
setPermanent
public void setPermanent(boolean permanent)
Set the type of the exception- Parameters:
permanent- whether the exception is considered permanent- Since:
- 5.9.1
-
isPermanent
public boolean isPermanent()
Check if this is a permanent problem- Returns:
- if this is a permanent problem and repeatedly scanning the packlist couldn't fix it
- Since:
- 5.9.1
-
-