Closed llvieira closed 7 years ago
Seems like a valid request, possible solution in #310 .
Not every http error is being caught that way, as it is not impossible for those to happen in some other part of the code, but this should catch the errors coming from a first attempt at connecting to the appliance, usually timeout
or no route to host
.
@fgbulsoni Thanks for answer and for your new PR related to this request.
Hi guys,
When I try to create the OneView client but my VM is paused, an OSError exception is raised instead of a HPOneViewException. The HPOneViewException should not cover this type of exception in this scenario? For treat this exception is only possible if I catch an OSError, but is seems odd for me since this also could be used as a HPOneViewException maybe.
Code example:
Result: