AeroGear Android Library 1.1.0

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

HttpException

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

HttpException

public HttpException(byte[] data,
                     int statusCode,
                     String message,
                     Map<String,String> headers)
Method Detail

getData

public byte[] getData()

getStatusCode

public int getStatusCode()

getHeaders

public Map<String,String> getHeaders()

AeroGear Android Library 1.1.0

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.