Section 7. Method of arrest by officer by virtue of warrant. — When making an arrest by virtue of a warrant, the officer shall inform the person to be arrested of the cause of the arrest and of the fact that a warrant has been issued for his arrest, except when he flees or forcibly resists...