Most commonly this is a temperature sensor error. Reset the cooktop by turning the breaker off at least 30 seconds. If the code persists, you may want to find a service manual or schematic to locate and test the sensor, or replace it. On at least one type (Electrolux) the code E2 is an issue with LED lighting.