001/* 002 * (C) Copyright 2013 Nuxeo SA (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl-2.1.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * Julien Carsique 016 * 017 */ 018 019package org.nuxeo.ecm.automation; 020 021/** 022 * Dedicated to bad requests: operation unsupported, invalid, not implemented... 023 * {@link org.nuxeo.ecm.automation.core.impl.InvokableMethod#invoke(OperationContext, java.util.Map)} is automatically 024 * wrapping {@link java.lang.UnsupportedOperationException} into an {@link InvalidOperationException}. 025 * 026 * @since 5.7 027 */ 028public class InvalidOperationException extends OperationException { 029 030 private static final long serialVersionUID = 1L; 031 032 public InvalidOperationException(String message) { 033 super(message); 034 } 035 036 public InvalidOperationException(Throwable cause) { 037 super(cause); 038 } 039 040 public InvalidOperationException(String message, Throwable cause) { 041 super(message, cause); 042 } 043 044}