    001    /*****************************************************************************
    002     * Copyright (C) NanoContainer Organization. All rights reserved.            *
    003     * ------------------------------------------------------------------------- *
    004     * The software in this package is published under the terms of the BSD      *
    005     * style license a copy of which has been included with this distribution in *
    006     * the LICENSE.txt file.                                                     *
    007     *                                                                           *
    008     * Original code by                                                          *
    009     *****************************************************************************/
    010    package org.nanocontainer.integrationkit;
    011
    012    import org.picocontainer.PicoException;
    013
    014    public class PicoCompositionException extends PicoException {
    015
    016        protected Throwable cause;
    017
    018        protected PicoCompositionException() {
    019            super();
    020        }
    021
    022        public PicoCompositionException(String message, Throwable cause) {
    023            super(message);
    024            this.cause = cause;
    025        }
    026
    027        public PicoCompositionException(Throwable cause) {
    028            this.cause = cause;
    029        }
    030
    031        public PicoCompositionException(String message) {
    032            super(message);
    033            cause = null;
    034        }
    035
    036        public Throwable getCause() {
    037            return cause;
    038        }
    039    }