Using more appropriate errors classes inside set-item!.