/** * Sends the given response to the watch's response handler. * * @param response the response to be handled * @throws WatchCancelledException if the watch has already been cancelled */ public void respond(Response response) throws WatchCancelledException { if (isCancelled()) { throw new WatchCancelledException(); } responseConsumer.accept(response); }