001    /*****************************************************************************
002     * Copyright (C) PicoContainer 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 Leo Simons                                               *
009     *****************************************************************************/
010    package org.picocontainer.script.bsh;
011    
012    import org.picocontainer.PicoCompositionException;
013    
014    /**
015     * @author <a href="mail at leosimons dot com">Leo Simons</a>
016     */
017    @SuppressWarnings("serial")
018    public class BeanShellScriptCompositionException
019        extends PicoCompositionException
020    {
021    
022        BeanShellScriptCompositionException(String message) {
023            super(message);
024        }
025    
026        BeanShellScriptCompositionException(Throwable cause) {
027            this("BeanShellScriptCompositionException: " + cause.getClass().getName() + " "
028                    + cause.getMessage());
029        }
030    }