converted ErrorClassExtended check / S1194