001/* 002 * Copyright (c) 2006-2015 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 * Julien Anguenot 011 * Florent Guillaume 012 */ 013package org.nuxeo.ecm.core.api; 014 015/** 016 * Exception thrown when an attempt is made to follow an incorrect lifecycle transition or to create a document with an 017 * incorrect initial lifecycle state 018 * 019 * @see CoreSession#followTransition 020 */ 021// inherits from a deprecated base LifeCycleException so that old code catching the old one still works 022@SuppressWarnings("deprecation") 023public class LifeCycleException extends org.nuxeo.ecm.core.lifecycle.LifeCycleException { 024 025 private static final long serialVersionUID = 1L; 026 027 public LifeCycleException() { 028 super(); 029 } 030 031 public LifeCycleException(String message) { 032 super(message); 033 } 034 035 public LifeCycleException(String message, Throwable cause) { 036 super(message, cause); 037 } 038 039 public LifeCycleException(Throwable cause) { 040 super(cause); 041 } 042 043}