handle proper expected exception