Interface ReceiveCommandErrorHandler


  • public interface ReceiveCommandErrorHandler
    Exception handler for processing ReceiveCommand.
    Since:
    5.7
    • Method Detail

      • handleNewIdValidationException

        default void handleNewIdValidationException​(ReceiveCommand cmd,
                                                    IOException e)
        Handle an exception thrown while validating the new commit ID.
        Parameters:
        cmd - offending command
        e - exception thrown
      • handleOldIdValidationException

        default void handleOldIdValidationException​(ReceiveCommand cmd,
                                                    IOException e)
        Handle an exception thrown while validating the old commit ID.
        Parameters:
        cmd - offending command
        e - exception thrown
      • handleFastForwardCheckException

        default void handleFastForwardCheckException​(ReceiveCommand cmd,
                                                     IOException e)
        Handle an exception thrown while checking if the update is fast-forward.
        Parameters:
        cmd - offending command
        e - exception thrown
      • handleBatchRefUpdateException

        default void handleBatchRefUpdateException​(List<ReceiveCommand> cmds,
                                                   IOException e)
        Handle an exception thrown while checking if the update is fast-forward.
        Parameters:
        cmds - commands being processed
        e - exception thrown