try catch in getObjects