blob: 24b2fe8c10b0356f9b4c26e99690c12844d1d01a [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;
/*
*/
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 Object[]{aSubclass.getQualifiedName(), aSuperclass.getQualifiedName()}));
}
/**
* @param s
*/
public InheritanceCycleException(String s) {
super(s);
}
}