package com.atlassian.bitbucket.rest.repository;

import com.atlassian.bitbucket.repository.ConflictingRefNameException;
import com.atlassian.bitbucket.rest.annotation.JsonSurrogate;
import org.codehaus.jackson.map.annotate.JsonSerialize;

@JsonSerialize
@JsonSurrogate(ConflictingRefNameException.class)
public class RestConflictingRefNameMessage extends RestInvalidRefNameMessage {
    public RestConflictingRefNameMessage(String context, ConflictingRefNameException e) {
        super(context, e);
    }

    public RestConflictingRefNameMessage(ConflictingRefNameException e) {
        this(null, e);
    }
}
