blob: 1c9631d36e27b3b774e62313b258b5c8f2a53280 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2005 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.6 $ $Date: 2005/08/24 20:20:24 $
*/
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 {
/**
* Comment for <code>serialVersionUID</code>
*
* @since 1.1.0
*/
private static final long serialVersionUID = -2385690847427897656L;
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);
}
}