org.nuxeo.ecm.gwt.runtime.client.http
Class ServerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.nuxeo.ecm.gwt.runtime.client.http.ServerException
- All Implemented Interfaces:
- Serializable
public class ServerException
- extends Exception
When a remote call returns an error HTTP code.
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
Constructor Summary |
ServerException(com.google.gwt.http.client.Response response)
|
Method Summary |
com.google.gwt.http.client.Response |
getResponse()
Gets the server response. |
int |
getStatusCode()
Gets the status code of the server response. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ServerException
public ServerException(com.google.gwt.http.client.Response response)
getStatusCode
public int getStatusCode()
- Gets the status code of the server response.
getResponse
public com.google.gwt.http.client.Response getResponse()
- Gets the server response.
- Returns:
- the response.
Copyright © 2011 Nuxeo SAS. All Rights Reserved.