Branch: refs/heads/rest-client
Home:
https://github.com/hawkular/hawkular-metrics
Commit: f385df168cd65b754fde2f8b2154157c32eaead1
https://github.com/hawkular/hawkular-metrics/commit/f385df168cd65b754fde2...
Author: John Sanda <jsanda(a)redhat.com>
Date: 2015-06-28 (Sun, 28 Jun 2015)
Changed paths:
M clients/rest-client/src/main/java/org/hawkular/metrics/rest/Client.java
A clients/rest-client/src/main/java/org/hawkular/metrics/rest/ClientException.java
A clients/rest-client/src/main/java/org/hawkular/metrics/rest/WriteException.java
M clients/rest-client/src/test/java/org/hawkular/metrics/rest/ClientITest.java
Log Message:
-----------
add some error handling for write requests
This commit introduces a couple exception classes - WriteException and
ClientException. A WriteException is thrown when the server returns a non-200
status code. A ClientException is thrown when the http request observable emits
an error. This would indicate a problem with the client itself.