1 package org.onap.sdc.workflow.services.exceptions;
4 public class UniqueValueViolationException extends RuntimeException {
6 private static final String UNIQUE_VALUE_VIOLATION_MSG = "%s with the value '%s' already exists.";
8 public UniqueValueViolationException(String uniqueType, String value) {
9 super(String.format(UNIQUE_VALUE_VIOLATION_MSG, uniqueType, value));