001    /*
002     * $Id: DeprecatedCodeException.java,v 1.1 2010/01/05 16:54:19 oboehm Exp $
003     *
004     * Copyright (c) 2008 by Oliver Boehm
005     *
006     * Licensed under the Apache License, Version 2.0 (the "License");
007     * you may not use this file except in compliance with the License.
008     * You may obtain a copy of the License at
009     *
010     *   http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing, software
013     * distributed under the License is distributed on an "AS IS" BASIS,
014     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express orimplied.
015     * See the License for the specific language governing permissions and
016     * limitations under the License.
017     *
018     * (c)reated 17.02.2009 by oliver (ob@oasd.de)
019     */
020    package patterntesting.check.runtime;
021    
022    import org.aspectj.lang.JoinPoint;
023    
024    /**
025     * The Class DeprecatedCodeException.
026     *
027     * @author <a href="boehm@javatux.de">oliver</a>
028     * @since 17.02.2009
029     * @version $Revision: 1.1 $
030     */
031    public class DeprecatedCodeException extends RuntimeException {
032    
033        private static final long serialVersionUID = 20090217L;
034    
035        /**
036         * Instantiates a new DeprectedCodeException.
037         *
038         * @param jp the Joinpoint from the context which is deprecated.
039         */
040        public DeprecatedCodeException(final JoinPoint jp) {
041            super(jp.toShortString() + " is deprecated!");
042        }
043    
044    }