-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix the failed java unit test related to getBlob. #40
Conversation
public static void ThrowIfError(ClientResponse r) { | ||
if (r.getStatus() >= 400) { | ||
throw new UniformInterfaceException(r); | ||
public static void ThrowIfNotSuccess(ClientResponse clientResponse) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From grammatical point of view should this be ThrowIfNotSucceed
or ThrowIfNotSucceeded
. Also ThrowIfFailed
would be good name candidate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here the Success is Http Status code according to HTTP standard. Only if the status is 2xx, no exception would be thrown.
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
fix the failed java unit test related to getBlob.
Refactor Job and Task into Crudy API, implementation of Action
Renamed ...media.implementation.entities to ...media.entityoperations
fix the failed java unit test related to getBlob.
bug fix in CI machine.
Fix bugs with message protection for keys create\delete
Java Storage Client Library 2.1.0
Share snapshot fix when getting server response
Performance
…ount search with result count tests
throw an exception if the HTTP status code is not success.