public AcceptVpcPeeringConnectionResult call() throws Exception { return acceptVpcPeeringConnection(acceptVpcPeeringConnectionRequest); } });
public AcceptVpcPeeringConnectionResult call() throws Exception { AcceptVpcPeeringConnectionResult result; try { result = acceptVpcPeeringConnection(acceptVpcPeeringConnectionRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } asyncHandler.onSuccess(acceptVpcPeeringConnectionRequest, result); return result; } });