AeroGear Android Libary 1.0.1

org.jboss.aerogear.android.http
Class HttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jboss.aerogear.android.http.HttpException
All Implemented Interfaces:
Serializable

public class HttpException
extends RuntimeException

If an HTTP Request does not return status code 200 then this will be thrown.

See Also:
Serialized Form

Constructor Summary
HttpException(byte[] data, int statusCode)
           
HttpException(byte[] data, int statusCode, String message)
           
 
Method Summary
 byte[] getData()
           
 int getStatusCode()
           
 
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

HttpException

public HttpException(byte[] data,
                     int statusCode)

HttpException

public HttpException(byte[] data,
                     int statusCode,
                     String message)
Method Detail

getData

public byte[] getData()

getStatusCode

public int getStatusCode()

AeroGear Android Libary 1.0.1

Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.