def integerValidation(requestMessage):
    """integerValidation validates the integer input if the input is incorrect
    it will request an input again. Once successful it will exit and return.

    Args:
        requestMessage (string): Contains the input message for the user to
        follow.

    Returns:
        [int]: A valid integer value.
    """    
    while True:
        try:
            validInteger = int(input(requestMessage))
        except ValueError as verr:
            print("Please enter a valid integer.", verr)
            continue
        except Exception as ex:
            print("Please enter a valid input.", ex)
            continue
        return validInteger