check code only, not exception type