package com.atlassian.bitbucket.pull;

import com.atlassian.bitbucket.validation.ArgumentValidationException;
import com.atlassian.bitbucket.i18n.KeyedMessage;

/**
 * Thrown when attempting to modify the {@link PullRequestRole#AUTHOR author} of a pull request. A pull request's
 * author cannot be assigned to any other role, nor can they be removed. For example, attempting to reassign the
 * author of a pull request as a {@link PullRequestRole#REVIEWER reviewer} may trigger this exception.
 *
 * @see PullRequestService#assignRole(int, long, String, PullRequestRole) Assigning a role
 * @see PullRequestService#unassignRole(int, long, String) Unassigning a role
 */
public class UnmodifiablePullRequestRoleException extends ArgumentValidationException {

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