@Test void testGetMessage() { DuplicateValueException ex = new DuplicateValueException( "MyEntityType", "myAttributeName", "myValue", mock(Throwable.class)); assertEquals( "entityTypeId:MyEntityType attributeName:myAttributeName value:myValue", ex.getMessage()); }
@Override public String getMessage() { return "entityTypeId:" + entityTypeId + " attributeName:" + attributeName + " value:" + value; }
DuplicateValueException extends DataConstraintViolationException { @Override public String getMessage() { return "entityTypeId:" + entityTypeId + " attributeName:" + attributeName + " value:" + value; } }
DuplicateValueException extends DataConstraintViolationException { @Override public String getMessage() { return "entityTypeId:" + entityTypeId + " attributeName:" + attributeName + " value:" + value; } DuplicateValueException(
      @Nullable @CheckForNull String entityTypeId,
      @Nullable @CheckForNull String attributeName,
      String value,
      @Nullable @CheckForNull Throwable cause); }
DuplicateValueException extends DataConstraintViolationException { @Override public String getMessage() { return "entityTypeId:" + entityTypeId + " attributeName:" + attributeName + " value:" + value; } DuplicateValueException(
      @Nullable @CheckForNull String entityTypeId,
      @Nullable @CheckForNull String attributeName,
      String value,
      @Nullable @CheckForNull Throwable cause); @Override String getMessage(); }
DuplicateValueException extends DataConstraintViolationException { @Override public String getMessage() { return "entityTypeId:" + entityTypeId + " attributeName:" + attributeName + " value:" + value; } DuplicateValueException(
      @Nullable @CheckForNull String entityTypeId,
      @Nullable @CheckForNull String attributeName,
      String value,
      @Nullable @CheckForNull Throwable cause); @Override String getMessage();  }