patterntesting.check.runtime.DeprecatedCodeException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of patterntesting-check-rt Show documentation
Show all versions of patterntesting-check-rt Show documentation
PatternTesting Check.RT (patterntesting-check-rt) provides different runtime
checks of known anti patterns (like using null values as arguments or
return values) but provides also a test framework for better testing.
/*
* $Id: DeprecatedCodeException.java,v 1.1 2010/01/05 16:54:19 oboehm Exp $
*
* Copyright (c) 2008 by Oliver Boehm
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express orimplied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* (c)reated 17.02.2009 by oliver ([email protected])
*/
package patterntesting.check.runtime;
import org.aspectj.lang.JoinPoint;
/**
* The Class DeprecatedCodeException.
*
* @author oliver
* @since 17.02.2009
* @version $Revision: 1.1 $
*/
public class DeprecatedCodeException extends RuntimeException {
private static final long serialVersionUID = 20090217L;
/**
* Instantiates a new DeprectedCodeException.
*
* @param jp the Joinpoint from the context which is deprecated.
*/
public DeprecatedCodeException(final JoinPoint jp) {
super(jp.toShortString() + " is deprecated!");
}
}