package com.atlassian.bitbucket.repository.sync;

import com.atlassian.bitbucket.repository.Repository;
import com.atlassian.bitbucket.IllegalEntityStateException;
import com.atlassian.bitbucket.i18n.KeyedMessage;

import javax.annotation.Nonnull;

/**
 * Thrown when attempting to {@link RefSyncService#setEnabled(Repository, boolean)
 * enable} synchronization for, or {@link RefSyncService#synchronize(RefSyncRequest) synchronize} in, a repository for
 * which synchronization is not {@link RefSyncService#isAvailable(Repository) available}.
 */
public class RefSyncNotAvailableException extends IllegalEntityStateException {

    public RefSyncNotAvailableException(@Nonnull KeyedMessage message) {
        super(message);
    }
}
