Skip to content

Commit

Permalink
Update Exception document.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexguan committed Apr 23, 2013
1 parent 613a844 commit a1b86f1
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ This module has been tested to work with ZooKeeper version 3.4.*.
+ [remove](#transaction-removepath-data-version)
+ [commit](#void-commitcallback)
+ [Exception](#exception)
+ [getCode](#number-getcode)
+ [getPath](#string-getpath)
+ [getName](#string-getname)
+ [toString](#string-tostring)
+ [Exception](#exception)
+ [Dependency](#dependency)
+ [License](#license)

Expand Down Expand Up @@ -708,16 +713,15 @@ Execute the transaction atomically.
* callback(error, results) `Function` - The callback function.
---
### Exception
If the requested operation fails due to reason related to ZooKeeper, the error
which is passed into callback function will be an instance of `Exception` class.
#### Number getCode()
Return the error code of the exception. The following is the list of error codes
exported through `Exception` class.
The exception can be identified through its error code, the following is the
list of error codes that are exported through `Exception` class.
* `Exception.OK`
* `Exception.SYSTEM_ERROR`
Expand Down Expand Up @@ -759,6 +763,10 @@ zookeeper.create('/test/demo', function (error, path) {
);
```
#### Number getCode()
Return the error code of the exception.
---
#### String getPath()
Expand Down

0 comments on commit a1b86f1

Please sign in to comment.