throw new ExtendsException( this, parent, ExtendsException.DESIGN_EXCEPTION_WRONG_TYPE );
throw new WrongTypeException( this, parent, WrongTypeException.DESIGN_EXCEPTION_WRONG_TYPE );
	public void checkExtends( DesignElement parent ) throws ExtendsException	{		String extendsName = getExtendsName( );		IElementDefn defn = getDefn( );		if ( parent == null )		{			throw new ExtendsException( this, extendsName,					ExtendsException.DESIGN_EXCEPTION_NOT_FOUND );		}		else if ( parent.getDefn( ) != defn )		{			throw new ExtendsException( this, parent,					ExtendsException.DESIGN_EXCEPTION_WRONG_TYPE );		}		else if ( parent == this )		{			throw new ExtendsException( this, extendsName,					ExtendsException.DESIGN_EXCEPTION_SELF_EXTEND );		}		else if ( parent.isKindOf( this ) )		{			throw new ExtendsException( this, parent,					ExtendsException.DESIGN_EXCEPTION_CIRCULAR );		}	}