@@ -0,0 +1,1386 @@
+package org.fusesource.restygwt.client;%0A%0Aimport com.google.gwt.http.client.Response;%0A%0A/**%0A * This class is used by AbstractRequestCallback to map the status code into an exception that is more appropriate for%0A * the application. A new ExceptionMapper can be specified through the method%0A * %7B@link org.fusesource.restygwt.client.Defaults#setExceptionMapper(ExceptionMapper)%7D.%0A *%0A * This default implementation does exactly what %7B@link org.fusesource.restygwt.client.AbstractRequestCallback%7D used%0A * to do.%0A *%0A * See %3Clink href=%22https://github.com/resty-gwt/resty-gwt/issues/209%22%3EIssue 209%3C/link%3E%0A * @author Constantino Cronemberger - ccronembeger@yahoo.com.br%0A */%0Apublic class ExceptionMapper %7B%0A%0A    /**%0A     * This method is called when Response is null.%0A     * @return the exception to be passed to the callback%0A     */%0A    public Throwable createNoResponseException() %7B%0A        return new FailedStatusCodeException(%22TIMEOUT%22, 999);%0A    %7D%0A%0A    /**%0A     * Creates an exception based on the Response.%0A     * @param method can be used by a subclass to find out the URL used for example%0A     * @param response the response received%0A     * @return the exception to be passed to the callback%0A     */%0A    public Throwable createFailedStatusException(Method method, Response response) %7B%0A        return new FailedStatusCodeException(response.getStatusText(), response.getStatusCode());%0A    %7D%0A%7D%0A

fix for issue https://github.com/resty-gwt/resty-gwt/issues/209 Create ExceptionMapper class to allow the application to customize how the exceptions are created. The default behaviour stays the same.