refined TreasureDataServiceException handling