package com.atlassian.bitbucket.ssh;

import com.atlassian.bitbucket.FeatureDisabledException;
import com.atlassian.bitbucket.i18n.KeyedMessage;

import javax.annotation.Nonnull;

/**
 * Thrown when the 'SSH key access' feature has been {@link SshConfiguration#isAccessKeysEnabled() disabled}
 * but a method is called that can only be used when it is enabled.
 */
public class SshKeyAccessDisabledException extends FeatureDisabledException {

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