Class CorruptObjectException

    • Constructor Detail

      • 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