001    /*
002     * Copyright 2004-2005 Stephen J. McConnell.
003     * Copyright 2004-2005 Niclas Hedhman.
004     *
005     * Licensed  under the  Apache License,  Version 2.0  (the "License");
006     * you may not use  this file  except in  compliance with the License.
007     * You may obtain a copy of the License at
008     *
009     *   http://www.apache.org/licenses/LICENSE-2.0
010     *
011     * Unless required by applicable law or agreed to in writing, software
012     * distributed  under the  License is distributed on an "AS IS" BASIS,
013     * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY KIND, either  express  or
014     * implied.
015     *
016     * See the License for the specific language governing permissions and
017     * limitations under the License.
018     */
019    
020    package net.dpml.transit;
021    
022    /**
023     * Runtime exception throw when an attempt is made to initialize transit 
024     * when an existing Transit instance is already active.
025     *
026     * @author <a href="http://www.dpml.net">Digital Product Meta Library</a>
027     * @version 1.1.0
028     */
029    public class TransitAlreadyInitializedException extends TransitRuntimeException
030    {
031       /**
032        * Serial version identifier.
033        */
034        static final long serialVersionUID = 1L;
035    
036        /**
037         * Construct a new <code>TransitAlreadyInitializedException</code> instance.
038         *
039         * @param message The detail message for this exception.
040         */
041        public TransitAlreadyInitializedException( final String message )
042        {
043            this( message, null );
044        }
045    
046        /**
047         * Construct a new <code>TransitAlreadyInitializedException</code> instance.
048         *
049         * @param message The detail message for this exception.
050         * @param cause the root cause of the exception
051         */
052        public TransitAlreadyInitializedException( final String message, final Throwable cause )
053        {
054            super( message, cause );
055        }
056    }
057