package com.atlassian.bitbucket.event.tag;

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

import javax.annotation.Nonnull;
import java.util.List;

/**
 * Exception that is thrown when one or more listeners for {@link TagChangeRequestedEvent}
 * {@link TagChangeRequestedEvent#cancel(KeyedMessage) canceled} the tag creation.
 */
public class TagCreationCanceledException extends RequestCanceledException {

    public TagCreationCanceledException(@Nonnull KeyedMessage message, @Nonnull List<KeyedMessage> cancelMessages) {
        super(message, cancelMessages);
    }
}
