[Hawkular-commits] [hawkular/hawkular-metrics] 204d4a: add error handling for reading data

John Sanda jsanda at redhat.com
Sun Jun 28 20:44:46 EDT 2015


  Branch: refs/heads/rest-client
  Home:   https://github.com/hawkular/hawkular-metrics
  Commit: 204d4aa4faed5b14273eca47645b590098752a06
      https://github.com/hawkular/hawkular-metrics/commit/204d4aa4faed5b14273eca47645b590098752a06
  Author: John Sanda <jsanda at 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/ReadException.java
    M clients/rest-client/src/main/java/org/hawkular/metrics/rest/WriteException.java

  Log Message:
  -----------
  add error handling for reading data

If the server returns an error status code, we throw a ReadException. If the
request observable emits an error, this indicates a problem with the client so
we throw a ClientException.




More information about the hawkular-commits mailing list