ApiException, not just Exception