Class CorruptObjectException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.eclipse.jgit.errors.CorruptObjectException
All Implemented Interfaces:
Serializable

public class CorruptObjectException extends IOException
Exception thrown when an object cannot be read from Git.
See Also:
  • Field Details

  • Constructor Details

    • CorruptObjectException

      public CorruptObjectException(ObjectChecker.ErrorType type, AnyObjectId id, String why)
      Report a specific error condition discovered in an object.
      Parameters:
      type - type of error
      id - identity of the bad object
      why - description of the error.
      Since:
      4.2
    • CorruptObjectException

      public CorruptObjectException(AnyObjectId id, String why)
      Construct a CorruptObjectException for reporting a problem specified object id
      Parameters:
      id - a AnyObjectId
      why - error message
    • CorruptObjectException

      public CorruptObjectException(ObjectId id, String why)
      Construct a CorruptObjectException for reporting a problem specified object id
      Parameters:
      id - a ObjectId
      why - error message
    • CorruptObjectException

      public CorruptObjectException(String why)
      Construct a CorruptObjectException for reporting a problem not associated with a specific object id.
      Parameters:
      why - error message
    • CorruptObjectException

      public CorruptObjectException(String why, Throwable cause)
      Construct a CorruptObjectException for reporting a problem not associated with a specific object id.
      Parameters:
      why - message describing the corruption.
      cause - optional root cause exception
      Since:
      3.4
  • Method Details