001/*
002 * (C) Copyright 2015 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 *     Nicolas Chapurlat <nchapurlat@nuxeo.com>
016 */
017
018package org.nuxeo.ecm.core.io.registry.context;
019
020/**
021 * Exception thrown when too much level of marshaller where loaded in cascade.
022 *
023 * @since 7.2
024 */
025public class MaxDepthReachedException extends Exception {
026
027    private static final long serialVersionUID = 1L;
028
029    public MaxDepthReachedException() {
030        super();
031    }
032
033    public MaxDepthReachedException(String message, Throwable cause, boolean enableSuppression,
034            boolean writableStackTrace) {
035        super(message, cause, enableSuppression, writableStackTrace);
036    }
037
038    public MaxDepthReachedException(String message, Throwable cause) {
039        throw new UnsupportedOperationException();
040    }
041
042    public MaxDepthReachedException(String message) {
043        super(message);
044    }
045
046    public MaxDepthReachedException(Throwable cause) {
047        super(cause);
048    }
049
050}