com.google.android.gcm.server
Class InvalidRequestException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.google.android.gcm.server.InvalidRequestException
All Implemented Interfaces:
java.io.Serializable

public final class InvalidRequestException
extends java.io.IOException

Exception thrown when GCM returned an error due to an invalid request.

This is equivalent to GCM posts that return an HTTP error different of 200.

See Also:
Serialized Form

Constructor Summary
InvalidRequestException(int status)
           
InvalidRequestException(int status, java.lang.String description)
           
 
Method Summary
 java.lang.String getDescription()
          Gets the error description.
 int getHttpStatusCode()
          Gets the HTTP Status Code.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidRequestException

public InvalidRequestException(int status)

InvalidRequestException

public InvalidRequestException(int status,
                               java.lang.String description)
Method Detail

getHttpStatusCode

public int getHttpStatusCode()
Gets the HTTP Status Code.


getDescription

public java.lang.String getDescription()
Gets the error description.