changing error exception