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 Michael Ward                                                 *
009     *****************************************************************************/
010    
011    package org.picocontainer.gems.jmx;
012    
013    import org.picocontainer.PicoCompositionException;
014    
015    
016    /**
017     * A registration exception caused trying to register the component with JMX.
018     * @author Michael Ward
019     */
020    @SuppressWarnings("serial")
021    public class JMXRegistrationException extends PicoCompositionException {
022    
023    
024    
025            /**
026         * Construct a JMXRegistrationException with a particular message.
027         * @param message the description of the exception
028         */
029        public JMXRegistrationException(final String message) {
030            super(message);
031        }
032    
033        /**
034         * Construct a JMXRegistrationException with a causing {@link Throwable}.
035         * @param cause the cause
036         */
037        public JMXRegistrationException(final Throwable cause) {
038            super(cause);
039        }
040    
041        /**
042         * Construct a JMXRegistrationException with a causing {@link Throwable} and a particular message.
043         * @param message the description of the exception
044         * @param cause the cause
045         */
046        public JMXRegistrationException(final String message, final Throwable cause) {
047            super(message, cause);
048        }
049    }