com.hoiio.sdk.exception
Class HoiioException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.hoiio.sdk.exception.HoiioException
All Implemented Interfaces:
Serializable

public class HoiioException
extends Exception

This exception is thrown whenever your request is not successful.
It has the information of what the error/response is as well as all other exceptions

See Also:
Serialized Form

Constructor Summary
HoiioException()
          Constructs the HoiioException object
HoiioException(Exception e)
          Constructs the HoiioException object
HoiioException(String status)
          Constructs the HoiioException object
HoiioException(String status, String response)
          Constructs the HoiioException object
 
Method Summary
 String getContent()
          Gets the response content by Hoiio
 HoiioStatus getStatus()
          Gets the Hoiio error status
 
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
 

Constructor Detail

HoiioException

public HoiioException()
Constructs the HoiioException object


HoiioException

public HoiioException(Exception e)
Constructs the HoiioException object

Parameters:
e - The exception returned by other sources

HoiioException

public HoiioException(String status)
Constructs the HoiioException object

Parameters:
status - The error status returned by Hoiio

HoiioException

public HoiioException(String status,
                      String response)
Constructs the HoiioException object

Parameters:
status - The error status returned by Hoiio
response - Full response by Hoiio
Method Detail

getStatus

public HoiioStatus getStatus()
Gets the Hoiio error status

Returns:
Hoiio error status

getContent

public String getContent()
Gets the response content by Hoiio

Returns:
The response content by Hoiio