def METHOD_NAME(target, exc):
    if target and isinstance(
        exc,
        (
            StageFileDoesNotExistError,
            StageFileBadNameError,
            NoOutputOrStageError,
        ),
    ):
        raise CheckoutErrorSuggestGit(target) from exc
    raise  # pylint: disable=misplaced-bare-raise