001/* 002 * Copyright (c) 2006-2011 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the Eclipse Public License v1.0 006 * which accompanies this distribution, and is available at 007 * http://www.eclipse.org/legal/epl-v10.html 008 * 009 */ 010package org.nuxeo.ecm.automation; 011 012import org.nuxeo.ecm.core.api.DocumentModel; 013 014/** 015 * Marker Exception to identify Dirty update detected by using the ChangeToken of the DocumentModel 016 * 017 * @author Tiry (tdelprat@nuxeo.com) 018 */ 019public class ConflictOperationException extends OperationException { 020 021 private static final long serialVersionUID = 1L; 022 023 public ConflictOperationException(DocumentModel doc) { 024 super("Conflict detected while trying to update document " + doc.getId()); 025 } 026}