Change excpetion error_no if an illegal event type was received