com.kii.sdk.photocolle
Class HttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.kii.sdk.photocolle.PhotocolleException
              extended by com.kii.sdk.photocolle.HttpException
All Implemented Interfaces:
Serializable

public class HttpException
extends PhotocolleException

Thrown when PhotoColleSDK received unexpected status code in HTTP session.

See Also:
Serialized Form

Method Summary
 String getReasonPhrase()
          Represents reason phrase as returned from HTTP server.
 String getResponseBody()
          Represents response body sent from server.
 int getStatusCode()
          Represents status code as returned from HTTP server.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getStatusCode

public int getStatusCode()
Represents status code as returned from HTTP server. See RFC2616 section 6.1.1.

Returns:
the status code of HTTP session.

getReasonPhrase

public String getReasonPhrase()
Represents reason phrase as returned from HTTP server. See RFC2616 section 6.1.1.

Returns:
the response phrase of HTTP Session.

getResponseBody

public String getResponseBody()
Represents response body sent from server.

Returns:
the error message from server.