Skip to content

Commit

Permalink
Removed BQLException.
Browse files Browse the repository at this point in the history
  • Loading branch information
Baoqiu Cui committed May 2, 2012
1 parent e816e08 commit 3cc8901
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,12 @@ public SenseiResult sendSearchRequest( SenseiClientRequest request) {
throw new RuntimeException(ex);
}
}
public SenseiResult sendBQL( String bql) throws BQLException {
public SenseiResult sendBQL( String bql) {
try {
StringBuilder buffer = new StringBuilder();
buffer.append("{'bql':").append(bql).append("}");
String requestStr = buffer.toString();
String output = sendPostRaw(getSearchUrl(), requestStr);
//System.out.println("Output from Server = " + output);
if (output.indexOf("\"error\"") < 5 && output.indexOf("\"error\"") >= 0) {
throw new BQLException(output);
}
return JsonDeserializer.deserialize(SenseiResult.class, jsonResponse(output));
} catch (Exception ex) {
throw new RuntimeException(ex);
Expand Down

0 comments on commit 3cc8901

Please sign in to comment.