replace try/catch with A.throwsError