docs: public static boolean isConstraintViolation(Exception e) {
          Throwable cause = e;
          while (cause != cause.getCause() && cause.getCause() != null) {
              if (cause.getClass().getSimpleName().equals("ConstraintViolationException")) //$NON-NLS-1$
                  return true;
              cause = cause.getCause();
          }
          return false;
      }