blob: ed9d8208d92bf66024c19eb55c870d1eb42ab04c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jem.java;
/*
* $RCSfile: InheritanceCycleException.java,v $
* $Revision: 1.4 $ $Date: 2005/02/15 22:37:02 $
*/
import java.text.MessageFormat;
import org.eclipse.jem.internal.java.adapters.nls.ResourceHandler;
/**
* @author DABERG
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class InheritanceCycleException extends Exception {
private static String MSG_PATTERN = ResourceHandler.getString("Java_Inh_Cycle_ERROR_");//$NON-NLS-1$
/**
*
*/
public InheritanceCycleException(JavaClass aSubclass, JavaClass aSuperclass) {
this(MessageFormat.format(MSG_PATTERN, new String[]{aSubclass.getQualifiedName(), aSuperclass.getQualifiedName()}));
}
/**
* @param s
*/
public InheritanceCycleException(String s) {
super(s);
}
}