# Class: WatchResult

## vertx-consul-js/watch_result~ WatchResult

#### new WatchResult()

Source:
  - vertx-consul-js/watch_result.js, line 27

### Methods

#### cause() → {todo}

A Throwable describing failure. This will be null if the operation succeeded.

Source:
  - vertx-consul-js/watch_result.js, line 68

##### Returns:

the cause or null if the operation succeeded.

Type
  todo

#### failed() → {boolean}

Did it fail?

Source:
  - vertx-consul-js/watch_result.js, line 96

##### Returns:

true if it failed or false otherwise

Type
  boolean

#### nextResult() → {Object}

The next result of the operation. This will be null if the operation failed.

Source:
  - vertx-consul-js/watch_result.js, line 54

##### Returns:

the next result or null if the operation failed.

Type
  Object

#### prevResult() → {Object}

The previous result of the operation.

Source:
  - vertx-consul-js/watch_result.js, line 40

##### Returns:

the previous result.

Type
  Object

#### succeeded() → {boolean}

Did it succeed?

Source:
  - vertx-consul-js/watch_result.js, line 82

##### Returns:

true if it succeded or false otherwise

Type
  boolean