Java Code Examples for com.google.gwt.http.client.Response#getStatusText()
The following examples show how to use
com.google.gwt.http.client.Response#getStatusText() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractGitHubGetListRequest.java From geowe-core with GNU General Public License v3.0 | 6 votes |
protected RestErrorCallback getErrorCallback() { return new RestErrorCallback() { @Override public boolean error(Request request, Throwable throwable) { autoMessageBox.hide(); String message = ""; int defaultCodeError = Response.SC_NOT_MODIFIED; try { throw throwable; } catch (ResponseException e) { Response response = e.getResponse(); message = response.getStatusText(); defaultCodeError = response.getStatusCode(); } catch (Throwable t) { message = t.getMessage(); } messageDialogBuilder.createError(UIMessages.INSTANCE.warning() + " " + defaultCodeError, message).show(); return false; } }; }
Example 2
Source File: GitHubGetRepositoryListRequest.java From geowe-core with GNU General Public License v3.0 | 6 votes |
private RestErrorCallback getErrorCallback() { return new RestErrorCallback() { @Override public boolean error(Request request, Throwable throwable) { autoMessageBox.hide(); String message = ""; int defaultCodeError = Response.SC_NOT_MODIFIED; try { throw throwable; } catch (ResponseException e) { Response response = e.getResponse(); message = response.getStatusText(); defaultCodeError = response.getStatusCode(); } catch (Throwable t) { message = t.getMessage(); } messageDialogBuilder.createError(UIMessages.INSTANCE.warning() + " " + defaultCodeError, message).show(); return false; } }; }
Example 3
Source File: GitHubGetFileRequest.java From geowe-core with GNU General Public License v3.0 | 6 votes |
private RestErrorCallback getErrorCallback() { return new RestErrorCallback() { @Override public boolean error(Request request, Throwable throwable) { autoMessageBox.hide(); String message = ""; int defaultCodeError = Response.SC_NOT_MODIFIED; try { throw throwable; } catch (ResponseException e) { Response response = e.getResponse(); message = response.getStatusText(); defaultCodeError = response.getStatusCode(); } catch (Throwable t) { message = t.getMessage(); } messageDialogBuilder.createError(UIMessages.INSTANCE.warning() + " " + defaultCodeError, message).show(); return false; } }; }
Example 4
Source File: GitHubUpdateFileExporter.java From geowe-core with GNU General Public License v3.0 | 6 votes |
private RestErrorCallback getErrorCallback() { return new RestErrorCallback() { @Override public boolean error(Request request, Throwable throwable) { autoMessageBox.hide(); String message = ""; int defaultCodeError = Response.SC_NOT_MODIFIED; try { throw throwable; } catch (ResponseException e) { Response response = e.getResponse(); message = response.getStatusText(); defaultCodeError = response.getStatusCode(); } catch (Throwable t) { message = t.getMessage(); } messageDialogBuilder.createError(UIMessages.INSTANCE.warning() + " " + defaultCodeError, message).show(); return false; } }; }
Example 5
Source File: GitHubCreateFileExporter.java From geowe-core with GNU General Public License v3.0 | 5 votes |
private RestErrorCallback getErrorCallback() { return new RestErrorCallback() { @Override public boolean error(Request request, Throwable throwable) { autoMessageBox.hide(); String message = ""; int defaultCodeError = Response.SC_NOT_MODIFIED; try { throw throwable; } catch (ResponseException e) { Response response = e.getResponse(); message = response.getStatusText(); defaultCodeError = response.getStatusCode(); } catch (Throwable t) { message = t.getMessage(); } messageDialogBuilder.createError( UIMessages.INSTANCE.warning() + " " + defaultCodeError, message).show(); return false; } }; }