CannotReflectException.java revision 69e17611504376e4d4603925f8528dfc890fd2c6
1932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines/* 2932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * Javassist, a Java-bytecode translator toolkit. 3932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * Copyright (C) 1999-2007 Shigeru Chiba. All Rights Reserved. 4932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * 5932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * The contents of this file are subject to the Mozilla Public License Version 6932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * 1.1 (the "License"); you may not use this file except in compliance with 7932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * the License. Alternatively, the contents of this file may be used under 8932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * the terms of the GNU Lesser General Public License Version 2.1 or later. 9932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * 10932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * Software distributed under the License is distributed on an "AS IS" basis, 11932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 12932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * for the specific language governing rights and limitations under the 13932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * License. 14932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines */ 15932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines 16932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hinespackage javassist.tools.reflect; 17932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines 18932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hinesimport javassist.CannotCompileException; 19e126b62760b4bf115cfed162f0234e4e722011dfStephen Hines 20e126b62760b4bf115cfed162f0234e4e722011dfStephen Hines/** 21932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * Thrown by <code>makeReflective()</code> in <code>Reflection</code> 22932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * when there is an attempt to reflect 23932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * a class that is either an interface or a subclass of 24932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * either ClassMetaobject or Metaobject. 25932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * 26932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * @author Brett Randall 27932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * @see javassist.tools.reflect.Reflection#makeReflective(CtClass,CtClass,CtClass) 28932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines * @see javassist.CannotCompileException 29932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines */ 30932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hinespublic class CannotReflectException extends CannotCompileException { 31932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines public CannotReflectException(String msg) { 32932bc6e35bcef7adff05d890a9dcc7212426fb6aStephen Hines super(msg); 33e126b62760b4bf115cfed162f0234e4e722011dfStephen Hines } 34e126b62760b4bf115cfed162f0234e4e722011dfStephen Hines} 35e126b62760b4bf115cfed162f0234e4e722011dfStephen Hines