Error handling by the switch reading.