001/*
002 * jPOS Project [http://jpos.org]
003 * Copyright (C) 2000-2026 jPOS Software SRL
004 *
005 * This program is free software: you can redistribute it and/or modify
006 * it under the terms of the GNU Affero General Public License as
007 * published by the Free Software Foundation, either version 3 of the
008 * License, or (at your option) any later version.
009 *
010 * This program is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
013 * GNU Affero General Public License for more details.
014 *
015 * You should have received a copy of the GNU Affero General Public License
016 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
017 */
018
019package org.jpos.core;
020
021import org.jpos.iso.ISOException;
022
023/**
024 * Thrown when a configurable component cannot be initialised due to invalid or missing configuration.
025 * @author <a href="mailto:apr@cs.com.uy">Alejandro P. Revilla</a>
026 * @version $Revision$ $Date$
027 * @see Configurable
028 * @since jPOS 1.2
029 */
030public class ConfigurationException extends ISOException {
031
032    private static final long serialVersionUID = -5605240786314946532L;
033    /** Default constructor. */
034    public ConfigurationException () {
035        super();
036    }
037    /**
038     * Creates a ConfigurationException with a detail message.
039     * @param detail error message
040     */
041    public ConfigurationException (String detail) {
042        super (detail);
043    }
044    /**
045     * Creates a ConfigurationException wrapping a root cause.
046     * @param nested the root cause
047     */
048    public ConfigurationException (Throwable nested) {
049        super (nested);
050    }
051    /**
052     * Creates a ConfigurationException with a detail message and root cause.
053     * @param detail error message
054     * @param nested the root cause
055     */
056    public ConfigurationException (String detail, Throwable nested) {
057        super (detail, nested);
058    }
059}