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#synchronize(RefSyncRequest) synchronize} a repository for which
 * synchronization is not {@link RefSyncService#isEnabled(Repository) enabled}.
 */
public class RefSyncNotEnabledException extends IllegalEntityStateException {

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