The E2 fault code indicates a blocked pump. This happens when the drain filter gets blocked by debris. You need to remove the bottom dish basket and take the filter out. Make sure there is no waste in the filter housing and/or the bottom of the machine. Most likely, the error will disappear.
Also, this may be due to a faulty water inlet valve. It is an electric magnet device installed in the bottom part of the machine. Remove the side panel and move up the inlet hose until you reach the valve. Take a picture of the connection. Turn off water supply, remove the valve and check it. If it is damaged, buy another one and install it in the same way.