package com.atlassian.bitbucket.internal.branch;

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

/**
 * Signifies the operation (like a branch deletion) is not supported on this branch,
 * unrelated to permission errors or the branch state.
 * <p>
 * Errors related to permissions or the branch state should instead use
 * {@link ForbiddenException} and
 * {@link IllegalEntityStateException} respectively.
 *
 * @since 2.8
 */
public class UnsupportedOnBranchException extends ArgumentValidationException {

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