com.elibom.client
Class HttpServerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.elibom.client.HttpServerException
All Implemented Interfaces:
Serializable

public class HttpServerException
extends RuntimeException

Author:
German Escobar
See Also:
Serialized Form

Constructor Summary
HttpServerException(int statusCode)
           
HttpServerException(int statusCode, org.json.JSONObject body)
           
 
Method Summary
 org.json.JSONObject getBody()
           
 String getMessage()
           
 int getStatusCode()
           
 String getStatusDescription(int statusCode)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

HttpServerException

public HttpServerException(int statusCode)

HttpServerException

public HttpServerException(int statusCode,
                           org.json.JSONObject body)
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getStatusCode

public int getStatusCode()

getBody

public org.json.JSONObject getBody()

getStatusDescription

public String getStatusDescription(int statusCode)


Copyright © 2013. All Rights Reserved.