Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit 0b7d7c8

Browse files
committed
error handling strategy [ci skip]
1 parent 24ec3dd commit 0b7d7c8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@ raw_db.with_authentication(username, password);
9797
auto query = ...
9898
```
9999

100+
## Error Handling
101+
102+
- Synchronous C++ API will throw exceptions on HTTP errors
103+
- Asynchronous APIs will drop inserts on HTTP errors and print to `stderr`
104+
- C api tries to catch CPP exceptions and
105+
- print exceptions to `stderr`
106+
- return non-zero `int` or `nullptr` where sensible
107+
- Open issue: #18
108+
100109
## Build & Test
101110

102111
The library should be easy to build, given `RxCpp` and `cpprestsdk` can be found. The Visual Studio 2015 solution is self-contained. A locally running, authentication-free instance of InfluxDB is required to run the test.

0 commit comments

Comments
 (0)