Replace records by exceptions