package at.procon.dip.ingestion.service; import at.procon.dip.domain.document.SourceType; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(HttpStatus.CONFLICT) public class SourceIdentifierConflictException extends RuntimeException { public SourceIdentifierConflictException(SourceType sourceType, String sourceIdentifier) { super("Source identifier '" + sourceIdentifier + "' for source type '" + sourceType + "' is already linked to a different payload"); } }