/** * Throws or logs the specified constraint violation. * * @param code code of this violation * @param message description of the violation * @throws CommitFailedException the constraint violation */ private void constraintViolation(int code, String message) throws CommitFailedException { List<String> nodeTypeNames = effective != null ? effective.getDirectTypeNames() : Collections.emptyList(); callback.onConstraintViolation(getPath(), nodeTypeNames, code, message); }
/** * Throws or logs the specified constraint violation. * * @param code code of this violation * @param message description of the violation * @throws CommitFailedException the constraint violation */ private void constraintViolation(int code, String message) throws CommitFailedException { List<String> nodeTypeNames = effective != null ? effective.getDirectTypeNames() : Collections.emptyList(); callback.onConstraintViolation(getPath(), nodeTypeNames, code, message); }
/** * Throws or logs the specified constraint violation. * * @param code code of this violation * @param message description of the violation * @throws CommitFailedException the constraint violation */ private void constraintViolation(int code, String message) throws CommitFailedException { List<String> nodeTypeNames = effective != null ? effective.getDirectTypeNames() : Collections.emptyList(); callback.onConstraintViolation(getPath(), nodeTypeNames, code, message); }