You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the result of an operation is neither OK or CREATED, a plain RuntimeException with user inputs is thrown - as opposed to RequestResult's details:
if (result.statusIs(Response.Status.CREATED) || result.statusIs(Response.Status.OK)) {
return (RestRelationship)createExtractor().convertFromRepresentation(result);
}
throw new RuntimeException(String.format("Error retrieving or creating relationship for key %s and value %s with index %s", key, value, index.getIndexName()));
Propose to add client response and other details to runtime exception so that rest api java users can figure out whats going on.
The text was updated successfully, but these errors were encountered:
When the result of an operation is neither OK or CREATED, a plain RuntimeException with user inputs is thrown - as opposed to RequestResult's details:
if (result.statusIs(Response.Status.CREATED) || result.statusIs(Response.Status.OK)) {
return (RestRelationship)createExtractor().convertFromRepresentation(result);
}
throw new RuntimeException(String.format("Error retrieving or creating relationship for key %s and value %s with index %s", key, value, index.getIndexName()));
Propose to add client response and other details to runtime exception so that rest api java users can figure out whats going on.
The text was updated successfully, but these errors were encountered: