The Tilt Method
The first way is to pull the dishwasher out from under the sink or your kitchen cabinet. Then, carefully tilt the machine back at a 45º angle. That should allow the water to flow away from the safety switch and return it back to its default status. That should reset the error...