package com.atlassian.bitbucket.ssh;

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

/**
 * Indicates an attempt was made to add a duplicate key access when this is not permitted by rules governing the
 * permitted types of duplicate key access entries. Note that the two keys may not necessarily be in the same scope.
 * For instance the same SSH public key cannot cannot be used for both gaining access to a repository project and
 * for authenticating as a particular user.
 */
public class DuplicatePublicKeyException extends IntegrityException {

    public DuplicatePublicKeyException(KeyedMessage message) {
        super(message);
    }
}
