001    // SECTION-START[License Header]
002    /*
003     *   Copyright (c) 2009 The JOMC Project
004     *   Copyright (c) 2005 Christian Schulte <cs@jomc.org>
005     *   All rights reserved.
006     *
007     *   Redistribution and use in source and binary forms, with or without
008     *   modification, are permitted provided that the following conditions
009     *   are met:
010     *
011     *     o Redistributions of source code must retain the above copyright
012     *       notice, this list of conditions and the following disclaimer.
013     *
014     *     o Redistributions in binary form must reproduce the above copyright
015     *       notice, this list of conditions and the following disclaimer in
016     *       the documentation and/or other materials provided with the
017     *       distribution.
018     *
019     *   THIS SOFTWARE IS PROVIDED BY THE JOMC PROJECT AND CONTRIBUTORS "AS IS"
020     *   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
021     *   THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
022     *   PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE JOMC PROJECT OR
023     *   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
024     *   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
025     *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
026     *   OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
027     *   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
028     *   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
029     *   ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
030     *
031     *   $Id$
032     *
033     */
034    // SECTION-END
035    package org.jomc;
036    
037    // SECTION-START[Documentation]
038    /**
039     * Gets thrown whenever an unexpected error condition is detected.
040     *
041     * @author <a href="mailto:cs@jomc.org">Christian Schulte</a> 1.0
042     * @version $Id$
043     */
044    // SECTION-END
045    // SECTION-START[Annotations]
046    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
047                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-4/jomc-tools" )
048    // SECTION-END
049    public class ObjectManagementException extends RuntimeException
050    {
051        // SECTION-START[ObjectManagementException]
052    
053        /** Serial version UID for compatibility with 1.0.x object streams. */
054        private static final long serialVersionUID = -2224998950220565115L;
055    
056        /**
057         * Creates a new {@code ObjectManagementException} taking a message describing the exception.
058         *
059         * @param msg The message describing the exception.
060         */
061        public ObjectManagementException( final String msg )
062        {
063            super( msg );
064        }
065    
066        /**
067         * Creates a new {@code ObjectManagementException} taking a causing exception.
068         *
069         * @param t The cause of the exception.
070         */
071        public ObjectManagementException( final Throwable t )
072        {
073            super( t );
074        }
075    
076        /**
077         * Creates a new {@code ObjectManagementException} taking a message describing the exception and a causing
078         * exception.
079         *
080         * @param msg The message describing the exception.
081         * @param t The cause of the exception.
082         */
083        public ObjectManagementException( final String msg, final Throwable t )
084        {
085            super( msg, t );
086        }
087    
088        // SECTION-END
089        // SECTION-START[Constructors]
090    
091        /** Creates a new {@code ObjectManagementException} instance. */
092        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
093                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-4/jomc-tools" )
094        public ObjectManagementException()
095        {
096            // SECTION-START[Default Constructor]
097            super();
098            // SECTION-END
099        }
100        // SECTION-END
101        // SECTION-START[Dependencies]
102        // SECTION-END
103        // SECTION-START[Properties]
104        // SECTION-END
105        // SECTION-START[Messages]
106        // SECTION-END
107    }