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 * Contributors:
010 *     Bogdan Stefanescu
011 *     Florent Guillaume
012 */
013package org.nuxeo.ecm.core.api;
014
015/**
016 * Exception thrown when a method tries to create a document that already exists through copy or move, or when trying to
017 * delete the target of a proxy.
018 *
019 * @see CoreSession#copy
020 * @see CoreSession#move
021 * @see CoreSession#removeDocument
022 * @see CoreSession#removeDocuments
023 * @see CoreSession#removeChildren
024 */
025// inherits from a deprecated base DocumentExistsException so that old code catching the old one still works
026@SuppressWarnings("deprecation")
027public class DocumentExistsException extends org.nuxeo.ecm.core.model.DocumentExistsException {
028
029    private static final long serialVersionUID = 1L;
030
031    public DocumentExistsException() {
032    }
033
034    public DocumentExistsException(String message) {
035        super(message);
036    }
037
038    public DocumentExistsException(String message, Throwable cause) {
039        super(message, cause);
040    }
041
042    public DocumentExistsException(Throwable cause) {
043        super(cause);
044    }
045
046}