public class

StatusCodeException

extends InvocationException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.google.gwt.user.client.rpc.InvocationException
           ↳ com.google.gwt.user.client.rpc.StatusCodeException

Class Overview

Indicates that an RPC response was returned with an invalid HTTP status code. This exception will be presented via onFailure(Throwable) if the HTTP response from the server does not have a 200 status code.

Summary

Public Constructors
StatusCodeException(int statusCode, String encodedResponse)
Construct an exception with the given status code and description.
Public Methods
String getEncodedResponse()
Returns the response message associated with the failed request.
int getStatusCode()
Returns the status code associated with the failed request.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public StatusCodeException (int statusCode, String encodedResponse)

Construct an exception with the given status code and description.

Parameters
statusCode the HTTP status code to report
encodedResponse the HTTP response message to report

Public Methods

public String getEncodedResponse ()

Returns the response message associated with the failed request.

public int getStatusCode ()

Returns the status code associated with the failed request.